Skip to content

Commit

Permalink
Merge pull request #56 from PrestaShop/dev
Browse files Browse the repository at this point in the history
 Use Tools to clear cache
  • Loading branch information
Quetzacoalt91 authored Nov 19, 2018
2 parents 87be1d9 + edcebf3 commit 3c091a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions ps_linklist.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,7 @@ public function install()
&& $this->registerHook('actionUpdateLangAfter')
&& $this->installTab()) {
//Clear Symfony cache to update routing rules
$container = SymfonyContainer::getInstance();
if (null !== $container) {
/** @var CacheClearer $cacheClearer */
$cacheClearer = $container->get('prestashop.adapter.cache_clearer');
$cacheClearer->clearAllCaches();
}
Tools::clearSf2Cache();

return true;
}
Expand Down
7 changes: 1 addition & 6 deletions upgrade/upgrade-3.0.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,7 @@ function upgrade_module_3_0($object)
$object->reset();

//Clear Symfony cache to update routing rules
$container = SymfonyContainer::getInstance();
if (null !== $container) {
/** @var CacheClearer $cacheClearer */
$cacheClearer = $container->get('prestashop.adapter.cache_clearer');
$cacheClearer->clearAllCaches();
}
Tools::clearSf2Cache();

return true;
}

0 comments on commit 3c091a8

Please sign in to comment.