From be2015a1761af59c87ac46db9972e06aeaab36e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Tue, 15 Sep 2020 10:22:57 +0200 Subject: [PATCH] MDL-69698 licenses: Improve the performance of the licenses cache The cache uses a single simple key and there is no need to hash it. --- lib/db/caches.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/db/caches.php b/lib/db/caches.php index 66dbe762a64..28618068d3d 100644 --- 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' => false, - 'simpledata' => false + 'simplekeys' => true, + 'simpledata' => false, ], );