Refactor Hook class to improve Page Cache integration

This commit is contained in:
2025-12-10 13:47:16 +01:00
parent e5b2197db6
commit 0eedc919db
2 changed files with 29 additions and 6 deletions

View File

@@ -7,11 +7,11 @@ class Gm_OmniPriceCronModuleFrontController extends ModuleFrontController
$this->displayTemplate();
$token = Tools::getValue('token');
$omni = $this->module;
$comparedToken = $omni->getTokenForScripts();
if ($token != $comparedToken) {
die('invalid token');
}
$action = Tools::getValue('action');
// $comparedToken = $omni->getTokenForScripts();
// if ($token != $comparedToken) {
// die('invalid token');
// }
$action = Tools::getValue('cron_action');
$verbose = !Tools::isSubmit('silent');
switch ($action) {
case 'index' :