MDL-43734: Prevent purging of all user session cache

This commit is contained in:
Mark Nielsen
2014-01-27 00:28:53 +01:00
committed by Eloy Lafuente (stronk7)
parent 250611b579
commit 91e6e56014
+1 -1
View File
@@ -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);
}