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

“To Drupal, or to ProcessWire? The million dollar choice. We decided to make an early switch to PW. And in retrospect, ProcessWire was probably the best decision we made. Thanks are due to ProcessWire and the amazing system and set of modules that are in place.” —Unni Krishnan, Founder of PigtailPundits