mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-41071 core: plugininfo_mod caches in plugininfo_mod definition
This commit is contained in:
parent
a31e811563
commit
cbb3990bcb
1
cache/stores/file/lib.php
vendored
1
cache/stores/file/lib.php
vendored
@ -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;
|
||||
}
|
||||
|
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user