Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Redis Object Cache
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
WP Plugins
Redis Object Cache
Commits
cddebea8
Commit
cddebea8
authored
11 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
i18n
parent
7a33f017
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
object-cache.php
+6
-6
6 additions, 6 deletions
object-cache.php
with
6 additions
and
6 deletions
object-cache.php
+
6
−
6
View file @
cddebea8
...
@@ -589,16 +589,16 @@ class WP_Object_Cache {
...
@@ -589,16 +589,16 @@ class WP_Object_Cache {
*/
*/
public
function
stats
()
{
public
function
stats
()
{
?>
<p>
?>
<p>
<strong>
Cache Hits:
</strong>
<?php
echo
number_format_i18n
(
$this
->
cache_hits
);
?>
<br
/>
<strong>
<?php
_e
(
'Cache Hits:'
,
'wordpress-redis-backend'
);
?>
</strong>
<?php
echo
number_format_i18n
(
$this
->
cache_hits
);
?>
<br
/>
<strong>
Cache Misses:
</strong>
<?php
echo
number_format_i18n
(
$this
->
cache_misses
);
?>
<br
/>
<strong>
<?php
_e
(
'
Cache Misses:
'
,
'wordpress-redis-backend'
);
?>
</strong>
<?php
echo
number_format_i18n
(
$this
->
cache_misses
);
?>
<br
/>
<strong>
Using Redis?
</strong>
<?php
echo
$this
->
can_redis
()
?
'yes'
:
'no'
;
?>
<br
/>
<strong>
<?php
_e
(
'
Using Redis?
'
,
'wordpress-redis-backend'
);
?>
</strong>
<?php
echo
$this
->
can_redis
()
?
__
(
'yes'
,
'wordpress-redis-backend'
)
:
__
(
'no'
,
'wordpress-redis-backend'
)
;
?>
<br
/>
</p>
</p>
<p>
</p>
<p>
</p>
<p><strong>
Caches Retrieved:
</strong></p>
<p><strong>
<?php
_e
(
'
Caches Retrieved:
'
,
'wordpress-redis-backend'
);
?>
</strong></p>
<ul>
<ul>
<li><em>
prefix:group:key - size in kilobytes
</em></li>
<li><em>
<?php
_e
(
'
prefix:group:key - size in kilobytes
'
,
'wordpress-redis-backend'
);
?>
</em></li>
<?php
foreach
(
$this
->
cache
as
$group
=>
$cache
)
:
?>
<?php
foreach
(
$this
->
cache
as
$group
=>
$cache
)
:
?>
<li>
<?php
echo
esc_html
(
$group
)
;
?>
-
<?php
echo
number_format_i18n
(
strlen
(
serialize
(
$cache
)
)
/
1024
,
2
);
?>
kb
</li>
<li>
<?php
printf
(
__
(
'%s - %s %s'
,
'wordpress-redis-backend'
),
esc_html
(
$group
)
,
number_format_i18n
(
strlen
(
serialize
(
$cache
)
)
/
1024
,
2
)
,
__
(
'kb'
,
'wordpress-redis-backend'
)
)
;
?>
</li>
<?php
endforeach
;
?>
<?php
endforeach
;
?>
</ul>
<?php
</ul>
<?php
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment