original_string: public function resetPages($pages_dir)
      {
          $this->recurse($pages_dir);
          $this->buildRoutes();
  
          // cache if needed
          if ($this->grav['config']->get('system.cache.enabled')) {
              /** @var Cache $cache */
              $cache = $this->grav['cache'];
              /** @var Taxonomy $taxonomy */
              $taxonomy = $this->grav['taxonomy'];
  
              // save pages, routes, taxonomy, and sort to cache
              $cache->save($this->pages_cache_id, [$this->instances, $this->routes, $this->children, $taxonomy->taxonomy(), $this->sort]);
          }
      }
code: public function resetPages($pages_dir)
      {
          $this->recurse($pages_dir);
          $this->buildRoutes();
  
          // cache if needed
          if ($this->grav['config']->get('system.cache.enabled')) {
              /** @var Cache $cache */
              $cache = $this->grav['cache'];
              /** @var Taxonomy $taxonomy */
              $taxonomy = $this->grav['taxonomy'];
  
              // save pages, routes, taxonomy, and sort to cache
              $cache->save($this->pages_cache_id, [$this->instances, $this->routes, $this->children, $taxonomy->taxonomy(), $this->sort]);
          }
      }
code_tokens: public function resetPages ( $ pages_dir ) { $ this -> recurse ( $ pages_dir ) ; $ this -> buildRoutes ( ) ; // cache if needed if ( $ this -> grav [ 'config' ] -> get ( 'system.cache.enabled' ) ) { /** @var Cache $cache */ $ cache = $ this -> grav [ 'cache' ] ; /** @var Taxonomy $taxonomy */ $ taxonomy = $ this -> grav [ 'taxonomy' ] ; // save pages, routes, taxonomy, and sort to cache $ cache -> save ( $ this -> pages_cache_id , [ $ this -> instances , $ this -> routes , $ this -> children , $ taxonomy -> taxonomy ( ) , $ this -> sort ] ) ; } }
docstring: Accessible method to manually reset the pages cache
  
  @param string $pages_dir
docstring_tokens: Accessible method to manually reset the pages cache