Jump to main content Jump to doc navigation

What is RefreshCache?

RefreshCache is a snippet for MODX Revolution that refreshes all cacheable resources and the chunks and snippets they contain -- whether they need it or not. It is slow and inelegant, but when it's finished, site visitors will not have to wait so long for pages to load.

It requests every resource on the site with cURL. It is intentionally slow to avoid overtaxing the server and/or running afoul of bot-blocking scripts.

Package Information

  • Downloads: 1,829
  • License: GPLv2
  • Requires: Revolution 2.0.x or greater
  • Supports: mysql,sqlsrv


This version of the RefreshCache extra was developed by Bob Ray. It was first posted to GitHub on Dec 14, 2011. As of Jun 22, 2017 it had been last updated on Jun 22, 2017, had 35 commits, and had been downloaded 1,829 times. The RefreshCache package consists of 422 separate files, containing 5,564 lines of code.

It is currently maintained by Bob Ray.


RefreshCache can be downloaded and installed from within the MODX Revolution Manager via Package Manager (Extras -> Installer), or from the MODX Extras Repository.

Development and Bug Reporting

RefreshCache is stored and developed using GitHub, and can be found here: RefreshCache GitHub main page.

Bugs and feature requests can be filed here: RefreshCache issues page..

Questions about how to use RefreshCache should be posted on the MODX Forums.


The full documentation for RefreshCache can be found at the author's web site (Bob's Guides): RefreshCache Documentation.

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.



$0 per month—let's make that $500!

Learn more