xPDO.toCache
Last updated not available | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$185 per month—let's make that $500!
Learn morexPDO::toCache¶
Stores an object or value in the cache under the given signature, with an optional lifetime in seconds (0 means no expiry).
Syntax¶
boolean toCache (string $signature, mixed $object, [integer $lifetime = 0], [array $options = array()])
Example¶
$xpdo->toCache($signature, $collection, 3600);
See Also¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$185 per month—let's make that $500!
Learn more










