Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
5acb423c
Commit
5acb423c
authored
Dec 07, 2006
by
Dries Buytaert
Browse files
- Patch
#16798
by profix898: flush the page cache when someone changes his user profile.
parent
45363904
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/user/user.module
View file @
5acb423c
...
...
@@ -1471,8 +1471,13 @@ function user_edit_submit($form_id, $form_values) {
unset
(
$form_values
[
'_account'
],
$form_values
[
'op'
],
$form_values
[
'submit'
],
$form_values
[
'delete'
],
$form_values
[
'form_token'
],
$form_values
[
'form_id'
],
$form_values
[
'_category'
]);
user_module_invoke
(
'submit'
,
$form_values
,
$account
,
$category
);
user_save
(
$account
,
$form_values
,
$category
);
// Delete that user's menu cache.
// Delete that user's menu cache:
cache_clear_all
(
$account
->
uid
.
':'
,
'cache_menu'
,
TRUE
);
// Clear the page cache because pages can contain usernames and/or profile information:
cache_clear_all
();
drupal_set_message
(
t
(
'The changes have been saved.'
));
return
'user/'
.
$account
->
uid
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment