Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Redis Object Cache
Commits
4286a218
Commit
4286a218
authored
Feb 27, 2014
by
Erick Hitter
Browse files
Support delay before flushing Redis
parent
01b7283c
Changes
1
Show whitespace changes
Inline
Side-by-side
object-cache.php
View file @
4286a218
...
@@ -908,6 +908,11 @@ class WP_Object_Cache {
...
@@ -908,6 +908,11 @@ class WP_Object_Cache {
* @return bool Returns TRUE on success or FALSE on failure.
* @return bool Returns TRUE on success or FALSE on failure.
*/
*/
public
function
flush
(
$delay
=
0
)
{
public
function
flush
(
$delay
=
0
)
{
$delay
=
absint
(
$delay
);
if
(
$delay
)
{
sleep
(
$delay
);
}
$result
=
$this
->
redis
->
flushall
();
$result
=
$this
->
redis
->
flushall
();
return
$result
;
return
$result
;
...
...
Write
Preview
Supports
Markdown
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