Skip to content

Instantly share code, notes, and snippets.

@vanilla-thunder
Created May 8, 2013 10:11
Show Gist options
  • Save vanilla-thunder/5539550 to your computer and use it in GitHub Desktop.
Save vanilla-thunder/5539550 to your computer and use it in GitHub Desktop.
[OXID eShop] clearing template cache in php
$cfg = oxRegistry::get("oxConfig");
$dir = $cfg->getConfigParam("sCompileDir") . "smarty/*";
foreach (glob($dir) as $item) {
if (!is_dir($item)) {
unlink($item);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment