Last active
February 28, 2016 10:57
-
-
Save dleone81/a55419ef4c8905a0ef34 to your computer and use it in GitHub Desktop.
Clean Lesti FPC cache for specific tags
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Schedule this via cron if yuo need to empty Lesti FPC cache for products and categories | |
**/ | |
require_once('app/Mage.php'); | |
umask(0); | |
Mage::app(); | |
Mage::getSingleton('fpc/fpc')->clean(sha1('category')); | |
Mage::getSingleton('fpc/fpc')->clean(sha1('product')); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment