Current Path: > home > transcarter > > www > wp-content > plugins > query-monitor > > collectors >
Operation : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 Software : Apache Server IP : 198.54.126.42 | Your IP: 216.73.216.135 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
admin.php | File | 3426 bytes | July 17 2025 21:05:45. | |
assets_scripts.php | File | 1215 bytes | July 17 2025 21:05:45. | |
assets_styles.php | File | 862 bytes | July 17 2025 21:05:45. | |
block_editor.php | File | 5528 bytes | July 17 2025 21:05:45. | |
cache.php | File | 3576 bytes | July 17 2025 21:05:45. | |
caps.php | File | 7352 bytes | July 17 2025 21:05:45. | |
conditionals.php | File | 2803 bytes | July 17 2025 21:05:45. | |
db_callers.php | File | 1140 bytes | July 17 2025 21:05:45. | |
db_components.php | File | 1175 bytes | July 17 2025 21:05:45. | |
db_dupes.php | File | 3498 bytes | July 17 2025 21:05:45. | |
db_queries.php | File | 6415 bytes | July 17 2025 21:05:45. | |
debug_bar.php | File | 2757 bytes | July 17 2025 21:05:45. | |
doing_it_wrong.php | File | 12778 bytes | July 17 2025 21:05:45. | |
environment.php | File | 9074 bytes | July 17 2025 21:05:45. | |
hooks.php | File | 2019 bytes | July 17 2025 21:05:45. | |
http.php | File | 11557 bytes | July 17 2025 21:05:45. | |
languages.php | File | 7552 bytes | July 17 2025 21:05:45. | |
logger.php | File | 7945 bytes | July 17 2025 21:05:45. | |
multisite.php | File | 1631 bytes | July 17 2025 21:05:45. | |
overview.php | File | 2845 bytes | July 17 2025 21:05:45. | |
php_errors.php | File | 15565 bytes | July 17 2025 21:05:45. | |
raw_request.php | File | 2424 bytes | July 17 2025 21:05:45. | |
redirects.php | File | 1365 bytes | July 17 2025 21:05:45. | |
request.php | File | 7325 bytes | July 17 2025 21:05:45. | |
theme.php | File | 17934 bytes | July 17 2025 21:05:45. | |
timing.php | File | 4448 bytes | July 17 2025 21:05:45. | |
transients.php | File | 3010 bytes | July 17 2025 21:05:45. |
<?php declare(strict_types = 1); /** * Transient storage collector. * * @package query-monitor */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * @extends QM_DataCollector<QM_Data_Transients> */ class QM_Collector_Transients extends QM_DataCollector { public $id = 'transients'; private string $transient_hook_prefix = ''; public function __construct() { $this->transient_hook_prefix = version_compare( $GLOBALS['wp_version'], '6.8-dev', '>' ) ? 'set' : 'setted'; parent::__construct(); } public function get_storage(): QM_Data { return new QM_Data_Transients(); } /** * @return void */ public function set_up() { parent::set_up(); add_action( "{$this->transient_hook_prefix}_site_transient", array( $this, 'action_setted_site_transient' ), 10, 3 ); add_action( "{$this->transient_hook_prefix}_transient", array( $this, 'action_setted_blog_transient' ), 10, 3 ); } /** * @return void */ public function tear_down() { remove_action( "{$this->transient_hook_prefix}_site_transient", array( $this, 'action_setted_site_transient' ), 10 ); remove_action( "{$this->transient_hook_prefix}_transient", array( $this, 'action_setted_blog_transient' ), 10 ); parent::tear_down(); } /** * @param string $transient * @param mixed $value * @param int $expiration * @return void */ public function action_setted_site_transient( $transient, $value, $expiration ) { $this->setted_transient( $transient, 'site', $value, $expiration ); } /** * @param string $transient * @param mixed $value * @param int $expiration * @return void */ public function action_setted_blog_transient( $transient, $value, $expiration ) { $this->setted_transient( $transient, 'blog', $value, $expiration ); } /** * @param string $transient * @param string $type * @param mixed $value * @param int $expiration * @phpstan-param 'site'|'blog' $value * @return void */ public function setted_transient( $transient, $type, $value, $expiration ) { $trace = new QM_Backtrace( array( 'ignore_hook' => array( current_filter() => true, ), 'ignore_func' => array( 'set_transient' => true, 'set_site_transient' => true, ), ) ); $name = str_replace( array( '_site_transient_', '_transient_', ), '', $transient ); $size = strlen( (string) maybe_serialize( $value ) ); $this->data->trans[] = array( 'name' => $name, 'filtered_trace' => $trace->get_filtered_trace(), 'component' => $trace->get_component(), 'type' => $type, 'value' => $value, 'expiration' => $expiration, 'exp_diff' => ( $expiration ? human_time_diff( 0, $expiration ) : '' ), 'size' => $size, 'size_formatted' => (string) size_format( $size ), ); } /** * @return void */ public function process() { $this->data->has_type = is_multisite(); } } # Load early in case a plugin is setting transients when it initialises instead of after the `plugins_loaded` hook QM_Collectors::add( new QM_Collector_Transients() );
SILENT KILLER Tool