I am trying to clear custom created cache from Admin, but it does not work. is their any way to make it work ?


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 Jul 10 '20 at 11:13
  • i get the tag in controller, but it does not delete it. – Hamendra Sunthwal Jul 10 '20 at 11:13
  • wait then let me try it on magento 1.9 instance and i will post and ans here – Pramod Jul 10 '20 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 Jul 10 '20 at 11:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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