Duplicate query showing in DB Query
-
Hi John,
First off, just started using this plugin for a site I’m working on, where the speed of the site could literally save someone’s life, or prevent them coming to serious harm. And it’s making a hell of a difference. So keep up the awesome work!
I’m attempting to reduce the amount of queries a page is generating. I’m literally down to 3 on an empty page at the moment. But there’s one that’s bugging me! (and apparently it’s a core one).
SELECT ID, post_name, post_parent, post_type
FROM poststable
WHERE post_name IN (‘slug’)
AND post_type IN (‘page’,’attachment’)This is coming up twice, it’s not an attachment page. It’s just a bog standard page template, nothing special going on and there’s no content coming out, or attachments relating to the page specifically. So I can’t work out why it’s being called once, let alone twice. The query is identical, but the Caller list is different.
Any ideas?
Many thanks, Tom. (Also, if I get rid of these, I’m literally down to 1 query for a standard page, with caching. Awesome).
- The topic ‘Duplicate query showing in DB Query’ is closed to new replies.