Skip to content

Instantly share code, notes, and snippets.

@barbazul
Created October 8, 2014 18:52
Show Gist options
  • Save barbazul/e92586f7eb8be429045c to your computer and use it in GitHub Desktop.
Save barbazul/e92586f7eb8be429045c to your computer and use it in GitHub Desktop.
Git post-chekout clear Magento cache
#!/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