Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a398a60
)
MDL-69698 licenses: Improve the performance of the licenses cache
author
David Mudrák
<david@moodle.com>
Tue, 15 Sep 2020 08:22:57 +0000
(10:22 +0200)
committer
David Mudrák
<david@moodle.com>
Tue, 15 Sep 2020 08:35:34 +0000
(10:35 +0200)
The cache uses a single simple key and there is no need to hash it.
lib/db/caches.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/db/caches.php
b/lib/db/caches.php
index
66dbe76
..
2861806
100644
(file)
--- a/
lib/db/caches.php
+++ b/
lib/db/caches.php
@@
-473,7
+473,7
@@
$definitions = array(
// Cache for licenses.
'license' => [
'mode' => cache_store::MODE_APPLICATION,
- 'simplekeys' =>
fals
e,
- 'simpledata' => false
+ 'simplekeys' =>
tru
e,
+ 'simpledata' => false
,
],
);