Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
memcache
Commits
70c8cb2a
Commit
70c8cb2a
authored
Aug 26, 2010
by
Jeremy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be sure ->flushes exists before using it.
parent
1d05fe9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
memcache.inc
memcache.inc
+4
-1
No files found.
memcache.inc
View file @
70c8cb2a
...
...
@@ -219,7 +219,10 @@ class MemCacheDrupal implements DrupalCacheInterface {
* Check if a wildcard flush has invalidated the current cached copy.
*/
private
function
wildcard_valid
(
$cid
,
$cache
)
{
if
((
int
)
$cache
->
flushes
<
(
int
)
$this
->
wildcard_flushes
(
$cid
))
{
// Previously cached content won't have ->flushes defined. We could
// force flush, but instead leave this up to the site admin.
$flushes
=
isset
(
$cache
->
flushes
)
?
(
int
)
$cache
->
flushes
:
0
;
if
(
$flushes
<
(
int
)
$this
->
wildcard_flushes
(
$cid
))
{
return
FALSE
;
}
return
TRUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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