Skip to content

Commit

Permalink
Reintroduce oldstatic module cacheing. It is still used in JDocumentH…
Browse files Browse the repository at this point in the history
…TML and I got a sneaking suspicion that removing i causes more issues than we are aware of.
  • Loading branch information
realityking committed May 3, 2012
1 parent a82d620 commit af7d36d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libraries/legacy/module/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ protected static function &_load()
* Caching modes:
* To be set in XML:
* 'static' One cache file for all pages with the same module parameters
* 'oldstatic' 1.5 definition of module caching, one cache file for all pages
* with the same module id and user aid,
* 'itemid' Changes on itemid change, to be called from inside the module:
* 'safeuri' Id created from $cacheparams->modeparams array,
* 'id' Module sets own cache id's
Expand Down Expand Up @@ -477,6 +479,16 @@ public static function moduleCache($module, $moduleparams, $cacheparams)
);
break;

case 'oldstatic': // provided for backward compatibility, not really usefull
$ret = $cache->get(
array($cacheparams->class, $cacheparams->method),
$cacheparams->methodparams,
$module->id . $view_levels,
$wrkarounds,
$wrkaroundoptions
);
break;

case 'itemid':
default:
$ret = $cache->get(
Expand Down

0 comments on commit af7d36d

Please sign in to comment.