xPDO.toCache
Последнее обновление Oct 17th, 2026 | История страницы | Улучшить эту страницу | Сообщить о проблеме
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
$194 per month—let's make that $500!
Learn morexPDO::toCache¶
Сохраняет объект или значение в кеше под заданной сигнатурой, с необязательным временем жизни в секундах (0 означает отсутствие срока действия).
Синтаксис¶
boolean toCache (string $signature, mixed $object, [integer $lifetime = 0], [array $options = array()])
Пример¶
$xpdo->toCache($signature, $collection, 3600);
Смотрите также¶
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
$194 per month—let's make that $500!
Learn more










