Skip to content

Commit

Permalink
Issue backdrop-contrib#111: Switching user does not properly clear cache
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmels authored Feb 24, 2021
1 parent 12a08e7 commit ab844f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions devel.module
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,9 @@ function devel_execute_form_submit($form, &$form_state) {
function devel_switch_user($name = NULL) {
global $user;

cache('cache_entity_node')->flush();
cache('page')->flush();

if ($user->uid) {
module_invoke_all('user_logout', $user);
}
Expand Down

0 comments on commit ab844f9

Please sign in to comment.