MDL-83209 cache: Correct class import

This commit is contained in:
Andrew Nicols
2024-09-20 09:47:59 +08:00
parent e9165e309b
commit b1b4dc4cc9
+1 -3
View File
@@ -16,9 +16,7 @@
namespace core_cache;
use cache_ttl_wrapper;
use core\lang_string;
use core_cache\administration_helper;
use core\exception\coding_exception;
use DirectoryIterator;
@@ -763,7 +761,7 @@ class helper {
$todelete = [];
foreach ($store->get_many($keys) as $key => $value) {
$expiresvalue = 0;
if ($value instanceof cache_ttl_wrapper) {
if ($value instanceof ttl_wrapper) {
$expiresvalue = $value->data;
} else if ($value instanceof cached_object) {
$expiresvalue = $value->restore_object();