WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Preload Activated, but still many queries for supercached pages (1 post)

  1. samhat
    Member
    Posted 10 months ago #

    I have too many sql queries from WP. I have choosen the following settings at the bottom, but I still see queries for the posts that has already been cached.

    I open the mysql log file for a 1-2 minutes and check the executed queries.

    I see queries like below for cached pages.

    SELECT * FROM wp_posts WHERE ID = 12127 LIMIT 1

    Query SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category') AND tr.object_id IN (12127) ORDER BY t.name ASC

    First select query is executed 99 times in 1-2 minutes.

    Is it normal to see sql queries for already cached pages. Shouldn't super cache static html pages without any php and sql execution.

    I can see that supercache directory created the cache file for the post with the ID 12127.

    Trying to understand if super cache is working right.

    Thanks for any suggestions.

    - Caching ON
    - Use mod_rewrite to serve cache files. (Recommended)
    - Compress pages
    - Don’t cache pages for known users
    - Cache rebuild
    - Lock down enabled
    - Preload - Refresh preloaded cache files every - 2880

    http://wordpress.org/plugins/wp-super-cache/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.