Created
October 8, 2014 18:52
-
-
Save barbazul/e92586f7eb8be429045c to your computer and use it in GitHub Desktop.
Git post-chekout clear Magento cache
This file contains 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
#!/usr/bin/php | |
<?php | |
if(file_exists('app/Mage.php')) require 'app/Mage.php'; | |
else require '../../app/Mage.php'; | |
Mage::app(); | |
Mage::getModel('core/cache')->flush(); | |
echo "Flushed all Magento cache.\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment