$pages->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 = $pages->getCache();

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

Arguments

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

Return value

Page array null


$pages methods and properties

API reference based on ProcessWire core version 3.0.244

I just love the easy and intuitive ProcessWire API. ProcessWire rocks!” —Jens Martsch, Web developer