Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
memcache-3176519
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
memcache-3176519
Commits
23728efe
Commit
23728efe
authored
10 years ago
by
jimyhuang
Committed by
Jeremy Andrews
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1984226
by jimmyhuang, markpavlitski: use hook_user_update instead of hook_user
parent
bd0770cd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unstable/memcache-session.inc
+5
-7
5 additions, 7 deletions
unstable/memcache-session.inc
with
5 additions
and
7 deletions
unstable/memcache-session.inc
+
5
−
7
View file @
23728efe
...
...
@@ -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
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment