Server IP : 192.64.118.117 / Your IP : 18.222.25.32 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/thecgapy/tcrgfinancesuite.com/wp-content/plugins/w3-total-cache/ |
Upload File : |
<?php namespace W3TC; class UsageStatistics_Plugin { public function run() { $core = Dispatcher::component( 'UsageStatistics_Core' ); $core->add_shutdown_handler(); // usage default statistics handling add_action( 'w3tc_usage_statistics_of_request', array( $this, 'w3tc_usage_statistics_of_request' ), 10, 1 ); add_filter( 'w3tc_usage_statistics_metrics', array( $this, 'w3tc_usage_statistics_metrics' ) ); } public function w3tc_usage_statistics_of_request( $storage ) { $used_100kb = memory_get_peak_usage( true ) / 1024 / 10.24; $storage->counter_add( 'php_memory_100kb', $used_100kb ); $storage->counter_add( 'php_requests', 1 ); } public function w3tc_usage_statistics_metrics( $metrics ) { return array_merge( $metrics, array( 'php_memory_100kb', 'php_requests' ) ); } }