Files
2026-01-25 21:50:36 +01:00

43 lines
1.4 KiB
PHP

<?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.
*/
if (!defined('_PS_VERSION_')) {exit;}
class Hook extends HookCore
{
/*
* module: pagecache
* date: 2025-11-28 11:17:30
* version: 9.6.1
*/
public static function coreCallHook($module, $method, $params)
{
if (!Module::isEnabled('pagecache') || !file_exists(_PS_MODULE_DIR_ . 'pagecache/pagecache.php')) {
return parent::coreCallHook($module, $method, $params);
}
else {
require_once _PS_MODULE_DIR_ . 'pagecache/pagecache.php';
return PageCache::execHook(PageCache::HOOK_TYPE_MODULE, $module, $method, $params);
}
}
/*
* module: pagecache
* date: 2025-11-28 11:17:30
* version: 9.6.1
*/
public static function coreRenderWidget($module, $hook_name, $params)
{
if (!Module::isEnabled('pagecache') || !file_exists(_PS_MODULE_DIR_ . 'pagecache/pagecache.php')) {
return parent::coreRenderWidget($module, $hook_name, $params);
}
else {
require_once _PS_MODULE_DIR_ . 'pagecache/pagecache.php';
return PageCache::execHook(PageCache::HOOK_TYPE_WIDGET, $module, $hook_name, $params);
}
}
}