xPDO.getCachePath
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::getCachePath¶
Returns the absolute path to the directory xPDO uses to write cache files. When xPDO::OPT_CACHE_PATH is not set, xPDO writes to a .xpdo-cache directory under the system temp directory; inside MODX the path is the core/cache/ directory.
Syntax¶
string|null getCachePath ()
Example¶
echo $xpdo->getCachePath();
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










