[ SYSTEM ]: Linux wordpress 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
wp-optimize
/
includes
/
tables
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 class-wp-optimize-table-404-detector.php
1,317 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: class-wp-optimize-table-404-detector.php
<?php if (!defined('ABSPATH')) die('No direct access allowed'); if (!class_exists('WP_Optimize_Table_404_Detector')) : class WP_Optimize_Table_404_Detector implements WP_Optimize_Table_Interface { /** * Name of the table * * @var string */ private $table_name = '404_detector'; /** * Complete table name with a prefix * * @return string */ public function get_table_name(): string { global $wpdb; return $wpdb->base_prefix . 'wpo_' . $this->table_name; } /** * Table fields and keys (if any) * * @return array */ public function describe(): array { return array( 'fields' => array( 'url' => 'TEXT NOT NULL', 'request_timestamp' => 'BIGINT UNSIGNED NOT NULL', 'request_count' => 'BIGINT UNSIGNED NOT NULL', 'referrer' => 'TEXT NOT NULL' ), 'keys' => array( 'url_timestamp_referrer' => '(url(75),request_timestamp,referrer(75))', 'timestamp_count' => '(request_timestamp,request_count)' ), 'unique' => 'url(75),request_timestamp,referrer(75)' ); } /** * Returns singleton instance * * @return WP_Optimize_Table_404_Detector */ public static function get_instance() { static $instance = null; if (null === $instance) { $instance = new static(); } return $instance; } } endif;