MDL-43734: Prevent purging of all user session cache

This commit is contained in:
Mark Nielsen
2014-01-27 00:29:38 +01:00
committed by Eloy Lafuente (stronk7)
parent 6536f04a5e
commit dbabf975c5
+1 -1
View File
@@ -1677,7 +1677,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);
}