Skip to content

Instantly share code, notes, and snippets.

@iamnoah
Created May 2, 2011 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamnoah/952119 to your computer and use it in GitHub Desktop.
Save iamnoah/952119 to your computer and use it in GitHub Desktop.
<?php
$magePath = 'app/Mage.php';
require_once $magePath;
umask(0);
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
$types = array("config", "layout", "block_html", "translate", "collections", "eav", "config_api", "full_page");
foreach($types as $type) {
Mage::app()->getCacheInstance()->cleanType($type);
}
Mage::app()->cleanCache();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment