You are here

function filter_user in Memcache API and Integration 6

Same name and namespace in other branches
  1. 5 memcache-session.inc \filter_user()

Implement hook_user() using a required module's namespace since memcache is not a module and thus can't implement hooks directly.

File

./memcache-session.inc, line 16
User session handling functions.

Code

function filter_user($op, &$edit, &$account, $category = NULL) {
  if ($op == 'update') {

    // Invalidate cached user object.
    cache_clear_all($account->uid, 'users');
  }
}