It takes one page load for the document to cache. Once the page has been requested, MODx will cache the page so long as assets/cache is writeable.
Ok, I’ve found a solution to my problem, although it’s a hack. If I edit siteCache.idx.php and delete the content (except for the first 100 lines or so, which are page definitions), pages become cached (I can see files being added to assets/cache). However, once I clear the cache through the MODx admin panel, all the content comes back into siteCache.idx.php. (The content appears to be stuff for snippets that I don’t use anyways) but once this happens, none of my pages are cached anymore.
Is the "siteCache" file somehow keeping my pages from being cached? Is this a bug, or am I supposed to do something else to enable caching?
I’m using MODx 0.9.5, PHP 5, and MySQL 14.12.
-
MODX Staff
- 12,272 Posts
Do not edit the siteCache or .idx files or you’re asking for problems most likely. I suspect you have the template switcher plugin installed. Delete it.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Thanks... that did the trick! I restored my siteCache file from a backup and deleted the template switcher plugin. Pages are being cached now. Thanks!