CacheMonster

Keep your cache warm, permanently and optionally integrate with Varnish.

How it works #

This plugin only works when used in conjuction with the {% cache %} tag and listens to two events: elements.onBeforeSaveElement and elements.onSaveElement. Before the element is actually saved it grabs all the relevant template cache records that will be affected and stores their uri paths temporarily. Then, after the element has finished saving the plugin fires off a number of Tasks:

  • Firstly, if Varnish is enabled it will loop through each of the paths and send a PURGE request to them.
  • Secondly, it will loop all of those paths again and perform a standard GET request on them.

Thats it! Enjoy the speed.