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

“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull