update
This commit is contained in:
27
modules/pagecache/upgrade/Upgrade-8.8.43.php
Normal file
27
modules/pagecache/upgrade/Upgrade-8.8.43.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* Page Cache Ultimate, Page Cache standard and Speed pack are powered by Jpresta (jpresta . com)
|
||||
*
|
||||
* @author Jpresta
|
||||
* @copyright Jpresta
|
||||
* @license See the license of this module in file LICENSE.txt, thank you.
|
||||
*/
|
||||
|
||||
use JPresta\SpeedPack\JprestaUtils;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {exit;}
|
||||
|
||||
/*
|
||||
* Refresh static cache configuration
|
||||
*/
|
||||
function upgrade_module_8_8_43($module)
|
||||
{
|
||||
Configuration::deleteByName('pagecache_default_context_key');
|
||||
Configuration::deleteByName('pagecache_default_context_key_mobile');
|
||||
$typecache = JprestaUtils::getConfigurationAllShop('pagecache_typecache');
|
||||
if ($typecache === 'static') {
|
||||
$module->uninstallCache($typecache);
|
||||
$module->installCache();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user