I am trying to clear custom created cache from Admin, but it does not work. is their any way to make it work ?
1 Answer
Login to your server and run the below command from your magento root directory:
php -r 'require "app/Mage.php"; Mage::app()->getCacheInstance()->flush();' or you can do it in the following way:-
$rm -rf var/cache/* $rm -rf var/session/* - Actually i wanted it delete it from admin, just like other cache.Hamendra Sunthwal– Hamendra Sunthwal2020-07-10 11:13:10 +00:00Commented Jul 10, 2020 at 11:13
- i get the tag in controller, but it does not delete it.Hamendra Sunthwal– Hamendra Sunthwal2020-07-10 11:13:51 +00:00Commented Jul 10, 2020 at 11:13
- wait then let me try it on magento 1.9 instance and i will post and ans herePramod– Pramod2020-07-10 11:14:01 +00:00Commented Jul 10, 2020 at 11:14
- Actually i had used event to clear cache & that works but i want custom cache to be cleaned just like other cache's are getting cleaned from cache management.Hamendra Sunthwal– Hamendra Sunthwal2020-07-10 11:25:58 +00:00Commented Jul 10, 2020 at 11:25