Unnecessary queries on every ajax call
-
Noticed that on every /wp-admin/admin-ajax.php request there is SQL query such as:
SELECT autoload FROM wp_options WHERE option_name = '_transient_xmlsf_flush_rewrite_rules'
This is responsible function:
public function transients_actions() { // CATCH TRANSIENT for flushing rewrite rules after the sitemaps setting has changed delete_transient('xmlsf_flush_rewrite_rules') && flush_rewrite_rules(); // CATCH TRANSIENT for static file check delete_transient('xmlsf_check_static_files') && $this->check_static_files(); }
Is it possible to change this logic, to avoid deleting transient on every ajax request?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Unnecessary queries on every ajax call’ is closed to new replies.