PagesLoaderCache::getCache() method

Given a Page ID, return it if it's cached, or NULL of it's not.

If no ID is provided, then this will return an array copy of the full cache.

You may also pass in the string "id=123", where 123 is the page_id

Usage

// basic usage
$page = $pagesLoaderCache->getCache();

// usage with all arguments
$page = $pagesLoaderCache->getCache($id = null);

Arguments

NameType(s)Description
id (optional)int, string, null

Return value

Page array null


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