mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-74285 cachestore_redis: Unable to delete a Redis cache instance
When deleting a cache instance, it tried to purge it, even though purge only makes sense for an individual definition (not the whole instance). As a result, it errored.
This commit is contained in:
parent
b5f51883f0
commit
896d0c225a
1
cache/stores/redis/lib.php
vendored
1
cache/stores/redis/lib.php
vendored
@ -468,7 +468,6 @@ class cachestore_redis extends cache_store implements cache_is_key_aware, cache_
|
||||
* Cleans up after an instance of the store.
|
||||
*/
|
||||
public function instance_deleted() {
|
||||
$this->purge();
|
||||
$this->redis->close();
|
||||
unset($this->redis);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user