Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
157ff121
Commit
157ff121
authored
Dec 19, 2014
by
Lukas Reschke
Browse files
Merge pull request #12954 from owncloud/hhvm-apc-clear
HHVM: In APC cache clear, only request the cache key in APCIterator.
parents
6b3600d2
0ba5c182
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/memcache/apc.php
View file @
157ff121
...
...
@@ -32,7 +32,7 @@ class APC extends Cache {
public
function
clear
(
$prefix
=
''
)
{
$ns
=
$this
->
getPrefix
()
.
$prefix
;
$ns
=
preg_quote
(
$ns
,
'/'
);
$iter
=
new
\
APCIterator
(
'user'
,
'/^'
.
$ns
.
'/'
);
$iter
=
new
\
APCIterator
(
'user'
,
'/^'
.
$ns
.
'/'
,
APC_ITER_KEY
);
return
apc_delete
(
$iter
);
}
...
...
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