Skip to content

Commit 7e1276c

Browse files
fevangelouHLeithner
authored andcommitted
Modules using the "cache" XML parameter always cached, regardless of that parameter's value (#24916)
1 parent ec6d0b7 commit 7e1276c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libraries/src/Helper/ModuleHelper.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,10 @@ public static function moduleCache($module, $moduleparams, $cacheparams)
534534
$cache = \JFactory::getCache($cacheparams->cachegroup, 'callback');
535535

536536
// Turn cache off for internal callers if parameters are set to off and for all logged in users
537-
if ($moduleparams->get('owncache') === 0 || $moduleparams->get('owncache') === '0' || $conf->get('caching') == 0 || $user->get('id'))
537+
$ownCacheDisabled = $moduleparams->get('owncache') === 0 || $moduleparams->get('owncache') === '0';
538+
$cacheDisabled = $moduleparams->get('cache') === 0 || $moduleparams->get('cache') === '0';
539+
540+
if ($ownCacheDisabled || $cacheDisabled || $conf->get('caching') == 0 || $user->get('id'))
538541
{
539542
$cache->setCaching(false);
540543
}

0 commit comments

Comments
 (0)