Skip to content
Snippets Groups Projects
Commit 23728efe authored by jimyhuang's avatar jimyhuang Committed by Jeremy Andrews
Browse files

Issue #1984226 by jimmyhuang, markpavlitski: use hook_user_update instead of hook_user

parent bd0770cd
No related branches found
Tags 8.x-2.0-alpha1
No related merge requests found
......@@ -13,14 +13,12 @@
require_once dirname(__FILE__) . '/../dmemcache.inc';
/**
* Implement hook_user() using a required module's namespace since memcache is
* not a module and thus can't implement hooks directly.
* Implement hook_user_update() using a required module's namespace since
* memcache is not a module and thus can't implement hooks directly.
*/
function filter_user($op, &$edit, &$account, $category = NULL) {
if ($op == 'update') {
// Invalidate cached user object.
cache_clear_all($account->uid, 'users');
}
function filter_user_update(&$edit, &$account, $category = NULL) {
// Invalidate cached user object.
cache_clear_all($account->uid, 'users');
}
function _drupal_session_open() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment