Thisath Damiru
Thisath Damiru
> Huh, turns out, it's not that simple... Tried printing `$_attr['cache_id']`, it is not processed at this point: `$_smarty_tpl->getSmarty()->getModifierCallback('generateCacheKey')('head-analytics--google',array('usePath'=>false,'useQuery'=>false))` Mmm🤔
Well, `$_smarty_tpl->getSmarty()->getModifierCallback('generateCacheKey')('head-analytics--google', array('usePath' => false, 'useQuery' => false))` is not directly related to the include tag class that I asked you to modify and is only processed if the .tpl...
> > I thought about it, but it's too verbose. The main problem is with `cache_id` - if set to NULL in PHP, Smarty stops caching, if set to NULL...
> > I created a structure identical to the code snippet he provided, keeping` if (isset($_attr['cache_id']) && strtolower($_attr['cache_id']) != 'null') {`, so cache_id works even when it's assigned the string...
Then we should try adding another statement to check whether the cache is disabled by default in the initialization or not, and proceed accordingly.