Okay guys, ready to buy a quick and dirty fix ?
I found a way to force 'static cache' to become 'dynamic cache' :
As my 'welcome User name' has been placed in my case in blockcontact, the code before the fix is :
modules/blockcontact/blockcontact.php
public function hookDisplayRightColumn($params)
{
global $smarty;
$tpl = 'blockcontact';
if (isset($params['blockcontact_tpl']) && $params['blockcontact_tpl'])
$tpl = $params['blockcontact_tpl'];
if (!$this->isCached($tpl.'.tpl', $this->getCacheId()))
$smarty->assign(array(
'telnumber' => Configuration::get('BLOCKCONTACT_TELNUMBER'),
'email' => Configuration::get('BLOCKCONTACT_EMAIL')
));
return $this->display(__FILE__, $tpl.'.tpl', $this->getCacheId());
return $this->display(__FILE__, $tpl.'.tpl');
}
After messing the stuff to force update :
public function hookDisplayRightColumn($params)
{
global $smarty;
$tpl = 'blockcontact';
if (isset($params['blockcontact_tpl']) && $params['blockcontact_tpl'])
$tpl = $params['blockcontact_tpl'];
if (1 || !$this->isCached($tpl.'.tpl', $this->getCacheId()))
$smarty->assign(array(
'telnumber' => Configuration::get('BLOCKCONTACT_TELNUMBER'),
'email' => Configuration::get('BLOCKCONTACT_EMAIL')
));
//return $this->display(__FILE__, $tpl.'.tpl', $this->getCacheId());
return $this->display(__FILE__, $tpl.'.tpl');
}
Focus on isCached( and getCacheId( to get it.
Cheers