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
57f44554
Commit
57f44554
authored
Sep 27, 2011
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1244296
by das-peter: fix strict warning from reset().
parent
7464fa39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
memcache.inc
memcache.inc
+5
-1
No files found.
memcache.inc
View file @
57f44554
...
...
@@ -296,7 +296,11 @@ class MemCacheDrupal implements DrupalCacheInterface {
}
if
(
$flush
)
{
$key_length
=
isset
(
$this
->
wildcard_flushes
[
$this
->
bin
])
?
strlen
(
reset
(
array_keys
(
$this
->
wildcard_flushes
[
$this
->
bin
])))
:
$length
;
$key_length
=
$length
;
if
(
isset
(
$this
->
wildcard_flushes
[
$this
->
bin
]))
{
$keys
=
array_keys
(
$this
->
wildcard_flushes
[
$this
->
bin
]);
$key_length
=
strlen
(
reset
(
$keys
));
}
$key
=
substr
(
$cid
,
0
,
$key_length
);
// Avoid too many calls to variable_set() by only recording a flush for
// a fraction of the wildcard invalidation variable, per cid length.
...
...
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