Skip to content

Instantly share code, notes, and snippets.

@ryaan-anthony
Created August 28, 2013 19:39
Show Gist options
  • Select an option

  • Save ryaan-anthony/6370329 to your computer and use it in GitHub Desktop.

Select an option

Save ryaan-anthony/6370329 to your computer and use it in GitHub Desktop.
<?php
require_once 'app/Mage.php';
$app = Mage::app();
echo "<pre>";
if($app != null) {
echo "The app was initialized.\n";
$cache = $app->getCache();
if($cache != null) {
echo "The cache is not empty. Clean it.\n";
$cache->clean();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment