PagesLoaderCache class

Located in file /wire/core/PagesLoaderCache.php

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the PagesLoaderCache class also inherits all the methods and properties of: Wire.

Show class?             Show args?        

Common

NameReturnSummary 
PagesLoaderCache::cache(Page $page)
(nothing)Cache the given page. 
PagesLoaderCache::cacheGroup(Page $page, string $groupName)
(nothing)Cache given page into a named group that it can be uncached with 
PagesLoaderCache::getCache()
Page array nullGiven a Page ID, return it if it's cached, or NULL of it's not. 
PagesLoaderCache::getCacheStatus()
array stringGet cache status 
PagesLoaderCache::getSelectorCache(string $selector, array $options)
array null string PageArrayRetrieve any cached page IDs for the given selector and options OR false if none found. 
PagesLoaderCache::hasCache($id)
boolIs given page ID in the cache? 
PagesLoaderCache::selectorCache(string $selector, array $options, PageArray $pages)
boolCache the given selector string and options with the given PageArray 
PagesLoaderCache::uncache($page)
boolRemove the given page from the cache. 
PagesLoaderCache::uncacheAll()
intRemove all pages from the cache 
PagesLoaderCache::uncacheGroup(string $groupName)
intUncache pages that were cached with given group name 

Additional methods and properties

In addition to the methods and properties above, PagesLoaderCache also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.244

Latest news

  • ProcessWire Weekly #558
    In the 558th issue of ProcessWire Weekly we'll check out the blog post that introduces ProcessWire 3.0.244, share some recent ProcessWire highlights, and more. Read on!
    Weekly.pw / 18 January 2025
  • ProcessWire 3.0.244 new main/master version
    ProcessWire 3.0.244 is our newest main/master/stable version. It's been more than a year in the making and is packed with tons of new features, issue fixes, optimizations and more. This post covers all the details.
    Blog / 18 January 2025
  • Subscribe to weekly ProcessWire news

“We chose ProcessWire because of its excellent architecture, modular extensibility and the internal API. The CMS offers the necessary flexibility and performance for such a complex website like superbude.de. ProcessWire offers options that are only available for larger systems, such as Drupal, and allows a much slimmer development process.” —xport communication GmbH