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

“We were really happy to build our new portfolio website on ProcessWire! We wanted something that gave us plenty of control on the back-end, without any bloat on the front end - just a nice, easy to access API for all our content that left us free to design and build however we liked.” —Castus, web design agency in Sheffield, UK