Using MODX Snippet Caching with &cache to Boost Performance
Learn how to enable snippet caching in MODX with the &cache property, set custom TTL, avoid stale data, and verify the cache works.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to enable snippet caching in MODX with the &cache property, set custom TTL, avoid stale data, and verify the cache works.
Learn how to define a custom table with MODX Revolution’s xPDO schema, query it using typed objects, and paginate results efficiently—all without writing raw SQL.
Learn how to enable MODX Resource Caching, choose between file and memcache handlers, and set different expiration times for blog posts versus static pages to improve page load times.
Learn how to balance MODX Revolution Snippets and Page Caching to prevent performance degradation and data leaking while maintaining dynamic content.
Slow MODX listing pages are usually a snippet problem, not a server problem. Here's why pdoResources outperforms getResources, with a working example, pagination setup, and the trade-offs to check first.