WP Debug if desired } /** * Clean up temporary transients */ private static function cleanup_transients() { // Delete temporary transients only delete_transient('wp_debug_temp_data'); delete_transient('wp_debug_cache'); // Clean up expired transients global $wpdb; $wpdb->query("DELETE FROM {$wpdb->options} WHERE option_name LIKE '_transient_timeout_wp_debug_%' AND option_value < UNIX_TIMESTAMP()"); $wpdb->query("DELETE FROM {$wpdb->options} WHERE option_name LIKE '_transient_wp_debug_%' AND option_name NOT IN (SELECT CONCAT('_transient_', SUBSTRING(option_name, 19)) FROM {$wpdb->options} WHERE option_name LIKE '_transient_timeout_wp_debug_%')"); } }