File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed
Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 3939 "humanmade/ludicrousdb" : " ~5.0.7" ,
4040 "humanmade/aws-ses-wp-mail" : " ~1.3.1" ,
4141 "monolog/monolog" : " ^2.11" ,
42- "maxbanton/cwh" : " ^2.0"
42+ "maxbanton/cwh" : " ^2.0" ,
43+ "humanmade/afterburner-object-cache" : " ^1.0.0"
4344 },
4445 "extra" : {
4546 "altis" : {
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ public function name() {
4343 */
4444 public function output () {
4545 $ stats = Afterburner \ObjectCache \getStats ();
46+ $ request_stats = Afterburner \ObjectCache \getRequestStats ();
4647 ?>
4748 <?php $ this ->before_tabular_output (); ?>
4849
@@ -72,8 +73,17 @@ public function output() {
7273 <td><code><?php echo esc_html ( round ( $ stats ->redis_total_time / 1000 ) ) ?> ms</code></td>
7374 </tr>
7475 <tr>
75- <td><?php echo esc_html__ ( 'All stats for this PHP worker ' , 'altis ' ); ?> </td>
76- <td><pre><?php echo esc_html ( print_r ( $ stats , true ) ) // phpcs:ignore ?> </pre></td>
76+ <td><?php echo esc_html__ ( 'All stats for this PHP worker ' , 'altis ' ); ?> </td>
77+ <td>
78+ <pre><?php echo esc_html ( print_r ( $ stats , true ) ) // phpcs:ignore ?> </pre>
79+ </td>
80+ </tr>
81+ <tr>
82+ <td><?php echo esc_html__ ( 'All stats for this request ' , 'altis ' ); ?> </td>
83+ <td>
84+ <pre><?php echo esc_html ( print_r ( $ request_stats , true ) ) // phpcs:ignore ?> </pre>
85+ </td>
86+ </tr>
7787 </tbody>
7888
7989 <?php
Original file line number Diff line number Diff line change @@ -451,6 +451,10 @@ function load_object_cache_afterburner() {
451451 require __DIR__ . '/alloptions_fix/namespace.php ' ;
452452 Alloptions_Fix \bootstrap ();
453453 // cache must be initted once it's included, else we'll get a fatal.
454+
455+ if ( class_exists ( 'Afterburner \\LocalRedisCache ' ) ) {
456+ require Altis \ROOT_DIR . '/vendor/humanmade/afterburner-object-cache/object-cache.php ' ;
457+ }
454458 wp_cache_init ();
455459}
456460
You can’t perform that action at this time.
0 commit comments