Refactor Hook class to improve Page Cache integration
This commit is contained in:
@@ -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' :
|
||||
|
||||
Reference in New Issue
Block a user