RefreshCache 1.2.0-pl

RefreshCache 1.2.0-pl

Released Jan 09, 2019 by bobray

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.

Download 36kb (46 downloads)
Downloads: 2,301
License: GPLv2
Requires Revolution 2.3.x or greater
Supports mysql,sqlsrv

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.

Installation Instructions

Install with Package Manager.

See the tutorial at: Bob's Guides.

Version 1.2.0-pl

  • Mods for MODX 2.7
  • Refactored to eliminate PHP timeout
  • Uses Guzzle 6 for access
  • Requires PHP >= 5.4
  • Adds class-based  controller and processors
  • Excludes non-cacheable resources

Version 1.1.0-pl

  • Fixed bug in progress bar
  • Works with Articles
  • Refactored as CMP
  • Converted JS to ExtJs/modExt
  • Uses setInterval for better memory management
  • More reliable
  • Slightly faster
  • Slightly prettier

Version Released Author Downloads
3 Versions 1 Contributors 2,302 Downloads
1.1.0-pl Jul, 18 2013 bobray 1,671
1.0.1-beta1 Dec, 24 2011 bobray 585