Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
M
memcache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
memcache
Commits
37c94c5b
Commit
37c94c5b
authored
Dec 16, 2010
by
Jeremy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#958930
: do not flush memcache each time cron runs.
parent
bb5b9a1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
memcache.inc
memcache.inc
+8
-1
No files found.
memcache.inc
View file @
37c94c5b
...
...
@@ -133,7 +133,14 @@ class MemCacheDrupal implements DrupalCacheInterface {
function
clear
(
$cid
=
NULL
,
$wildcard
=
FALSE
)
{
if
(
empty
(
$cid
)
||
$wildcard
===
TRUE
)
{
if
(
$cid
==
'*'
)
{
// system_cron() flushes all cache bins returned by hook_flush_caches()
// with cache_clear_all(NULL, $bin); This is for garbage collection with
// the database cache, but serves no purpose with memcache. So return
// early here.
if
(
!
isset
(
$cid
))
{
return
;
}
elseif
(
$cid
==
'*'
)
{
$cid
=
''
;
}
if
(
$this
->
cache_lifetime
&&
empty
(
$cid
))
{
...
...
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