• MODX.com

    1,100 downloads

Uncacher

Uncacher is an extra by floatboth, first released on 2012-07-18.

Package Description

Do you have a big MODX website? Like, thousands of resources and lots of stuff in the templates? Are your pages taking several seconds to render when they aren't cached? When search engines start crawling a site like that when it's not fully cached, it may become extremely slow. So you can't afford cleaning the whole cache every time you save a resource.

This module provides a different strategy: when you save a resource (or its pub_date time comes), it clears and regenerates the cache of this resource, its parents and the index page (site_start system setting).

Usage/Installation Instructions

First, download and install it with the MODX package manager (System, Package Management) like any other package.

Second, uncheck the "Empty Cache" flag on every resource you edit.

If you don't use the publishing-at-a-specified-time functionality, you can stop reading right there.

If you do need it, set CronManager up and add a cron job calling the uncacheRecent snippet every n minutes and with optionsminutes: n, where n is how often to check. Five minutes is a good choice, but you can set it to one minute if you need that much precision.

Details

Developer(s)
floatboth
Released
2012-07-23
First seen
2012-07-18
License
WTFPL
Supported databases
MySQL SQL Server
Minimum MODX Requirement
2.2

Uncacher Releases

Vendor Signature Released on
MODX.com 0.1.0-pl 2012-07-23 (11 years ago)