mirror of
https://github.com/moodle/moodle.git
synced 2025-08-02 15:49:43 +02:00
MDL-43734: Prevent purging of all user session cache
This commit is contained in:
parent
f05e25d208
commit
6cc9ac6cdb
1 changed files with 1 additions and 1 deletions
2
cache/classes/loaders.php
vendored
2
cache/classes/loaders.php
vendored
|
@ -1742,7 +1742,7 @@ class cache_session extends cache {
|
|||
* Purges the session cache of all data belonging to the current user.
|
||||
*/
|
||||
public function purge_current_user() {
|
||||
$keys = $this->get_store()->find_all($this->get_key_prefix());
|
||||
$keys = $this->get_store()->find_by_prefix($this->get_key_prefix());
|
||||
$this->get_store()->delete_many($keys);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue