From cbb3990bcb1ed9a35cea79c87d0a5c5f133ebe80 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Wed, 7 Aug 2013 20:55:22 +0800 Subject: [PATCH] MDL-41071 core: plugininfo_mod caches in plugininfo_mod definition --- cache/stores/file/lib.php | 1 + lib/pluginlib.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cache/stores/file/lib.php b/cache/stores/file/lib.php index adc1a9bda16..4830d71765d 100644 --- a/cache/stores/file/lib.php +++ b/cache/stores/file/lib.php @@ -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; } diff --git a/lib/pluginlib.php b/lib/pluginlib.php index cf7e1464d04..6e83947f1a7 100644 --- a/lib/pluginlib.php +++ b/lib/pluginlib.php @@ -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');