Skip to content

Commit

Permalink
MDL-41071 core: plugininfo_mod caches in plugininfo_mod definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed Aug 7, 2013
1 parent a31e811 commit cbb3990
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cache/stores/file/lib.php
Expand Up @@ -336,6 +336,7 @@ public function get($key) {
$filename = $key.'.cache';
$file = $this->file_path_for_key($key);
$ttl = $this->definition->get_ttl();
$maxtime = 0;
if ($ttl) {
$maxtime = cache::now() - $ttl;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/pluginlib.php
Expand Up @@ -3341,7 +3341,7 @@ public function init_display_name() {
*/
protected function load_version_php($disablecache=false) {

$cache = cache::make('core', 'plugininfo_base');
$cache = cache::make('core', 'plugininfo_mod');

$versionsphp = $cache->get('versions_php');

Expand Down

0 comments on commit cbb3990

Please sign in to comment.