We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de84dc9 + 3e31225 commit b4d6b89Copy full SHA for b4d6b89
app/code/community/Inviqa/SymfonyContainer/Model/Observer.php
@@ -12,7 +12,10 @@ class Inviqa_SymfonyContainer_Model_Observer
12
public function onCacheRefresh(Varien_Event_Observer $event)
13
{
14
if (ConfigurationBuilder::MODEL_ALIAS === $event->getType()) {
15
- unlink(Mage::getBaseDir('cache') . '/' . ConfigurationBuilder::CACHED_CONTAINER);
+ $filePath = Mage::getBaseDir('cache') . '/' . ConfigurationBuilder::CACHED_CONTAINER;
16
+ if (file_exists($filePath)) {
17
+ unlink($filePath);
18
+ }
19
}
20
21
public function onPreDispatch(Varien_Event_Observer $event)
0 commit comments