PagesLoaderCache::uncacheAll() method

Remove all pages from the cache

Usage

// basic usage
$int = $pagesLoaderCache->uncacheAll();

// usage with all arguments
$int = $pagesLoaderCache->uncacheAll($page = null, array $options = []);

Arguments

NameType(s)Description
page (optional)Page, null

Optional Page that initiated the uncacheAll

options (optional)array

Additional options to modify behavior:

  • shallow (bool): By default, this method also calls $page->uncache(). To prevent call to $page->uncache(), set 'shallow' => true.

Return value

int

Number of pages uncached


PagesLoaderCache methods and properties

API reference based on ProcessWire core version 3.0.244

“The end client and designer love the ease at which they can update the website. Training beyond how to log in wasn’t even necessary since ProcessWire’s default interface is straightforward.” —Jonathan Lahijani