Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

WP Super Cache plugin generate page and save html of this page to static file and if needed this file is served instead of dynamically generate this page each time.

Does WP Super Cache plugin make any extra SQL queries during serving the cached page?

share|improve this question

2 Answers 2

I can't tell you the answer to this off the top of my head, but if you want to look at the SQL queries (among other things) executed for any given page load, check out the black box debug bar plugin. I think that the debug bar plugin might have similar functionality as well.

Regardless of the number of additional queries a caching plugin makes, it should still cut down on your page load time...don't want to cut off your nose to spite your face, right?

If you really want to focus on getting your queries down, you should look into database caching, which can be done by any number of plugins.

share|improve this answer
1  
Thanks for feedback. I know about those plugins. I even wrote similar plugin :). But those plugins does not show needed info because cached page is the static file which is generated once first time when page was generated. Those plugins will wrote in the source code of the page the number of sql queries needed to generate page only for first time and and not number of sql queries needed to generate cached page. So those plugins does not show info about cached page and that is why I decided to ask this question here. –  webvitaly Apr 30 '12 at 8:41
up vote 1 down vote accepted

I've received an answer about it from Donncha O Caoimh - developer of the WP Super Cache plugin:

If using mod_rewrite to serve cached files then there won't be any queries executed. The page might load images that require queries but the cached html itself won't require queries.

If using PHP mode than I think it won't need any or many queries but I can't remember right now.

So there is 0 extra sql queries and the question is closed.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.