Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Redis Object Cache
Commits
6d489e8a
Commit
6d489e8a
authored
Feb 27, 2014
by
Erick Hitter
Browse files
Helps to return values after modifying them, as I failed to do in
01b7283c
.
parent
9f98ee18
Changes
1
Hide whitespace changes
Inline
Side-by-side
object-cache.php
View file @
6d489e8a
...
...
@@ -1023,6 +1023,8 @@ class WP_Object_Cache {
*/
protected
function
prepare_value_for_redis
(
$value
)
{
$value
=
maybe_serialize
(
$value
);
return
$value
;
}
/**
...
...
@@ -1033,6 +1035,8 @@ class WP_Object_Cache {
*/
protected
function
restore_value_from_redis
(
$value
)
{
$value
=
maybe_unserialize
(
$value
);
return
$value
;
}
/**
...
...
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