Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mage::app()->cleanCache()
- Mage::app()->getCacheInstance()->flush();
- $tags = Mage::app()->getCacheInstance()->cleanType($type);
- Mage::dispatchEvent('adminhtml_cache_refresh_type', array('type' => $type));
- $updatedTypes++;
- <?php
- require_once './app/Mage.php';
- umask(0);
- Mage::app('default');
- Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
- try {
- $allTypes = Mage::app()->useCache();
- foreach($allTypes as $type => $value) {
- Mage::app()->getCacheInstance()->cleanType($type);
- Mage::dispatchEvent('adminhtml_cache_refresh_type', array('type' => $type));
- echo "{$type} </br>";
- }
- echo 'done';
- } catch (Exception $e) {
- echo $e->getMessage();
- }
- Mage::app()->getCacheInstance()->flush();
Add Comment
Please, Sign In to add comment