Created
May 8, 2013 10:11
-
-
Save vanilla-thunder/5539550 to your computer and use it in GitHub Desktop.
[OXID eShop] clearing template cache in php
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
$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