MDL-41071 core: plugininfo_mod caches in plugininfo_mod definition
authorFrederic Massart <fred@moodle.com>
Wed, 7 Aug 2013 12:55:22 +0000 (20:55 +0800)
committerFrederic Massart <fred@moodle.com>
Wed, 7 Aug 2013 12:55:22 +0000 (20:55 +0800)
cache/stores/file/lib.php
lib/pluginlib.php

index adc1a9b..4830d71 100644 (file)
@@ -336,6 +336,7 @@ class cachestore_file extends cache_store implements cache_is_key_aware, cache_i
         $filename = $key.'.cache';
         $file = $this->file_path_for_key($key);
         $ttl = $this->definition->get_ttl();
+        $maxtime = 0;
         if ($ttl) {
             $maxtime = cache::now() - $ttl;
         }
index cf7e146..6e83947 100644 (file)
@@ -3341,7 +3341,7 @@ class plugininfo_mod extends plugininfo_base {
      */
     protected function load_version_php($disablecache=false) {
 
-        $cache = cache::make('core', 'plugininfo_base');
+        $cache = cache::make('core', 'plugininfo_mod');
 
         $versionsphp = $cache->get('versions_php');