Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-43734: Prevent purging of all user session cache
  • Loading branch information
polothy authored and stronk7 committed Jan 26, 2014
1 parent 250611b commit 91e6e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache/classes/loaders.php
Expand Up @@ -1742,7 +1742,7 @@ protected function check_tracked_user() {
* 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);
}

Expand Down

0 comments on commit 91e6e56

Please sign in to comment.