1

is there an event i can hook on to run Mage::app()->getCacheInstance()->cleanType('block_html'); every time the Blocks HTML cache is invalidated?

1 Answer 1

1

Michael Tessel has written a module that automatically refreshes invalidated caches you should check it out:

https://github.com/MichaelThessel/magento-cache-refresh

2
  • thank you i don't want a cron job I want an observer that listens for the cache to get invalidated Commented Jan 22, 2016 at 14:06
  • Unfortunately I'm not aware of any events being dispatched on cache validation. Commented Jan 22, 2016 at 14:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.