in_comic_category creating a phenomenal amount of extra query calls per page #32

Open
opened 2009-12-25 21:56:19 +00:00 by Frumph · 4 comments
Frumph commented 2009-12-25 21:56:19 +00:00 (Migrated from github.com)

wp_get_post_categories($post->ID) in in_comic_category() is adding a large amount of SQL queries to the page, is there a way we can do this in_comic_category() without so many sql queries for it?

wp_get_post_categories($post->ID) in in_comic_category() is adding a large amount of SQL queries to the page, is there a way we can do this in_comic_category() without so many sql queries for it?
Frumph commented 2009-12-25 22:57:15 +00:00 (Migrated from github.com)

setting a var in display_post to capture the in_comic_cat() then passing it to each sub function so that it's not overused all over the place.

setting a var in display_post to capture the in_comic_cat() then passing it to each sub function so that it's not overused all over the place.
Frumph commented 2009-12-26 14:58:03 +00:00 (Migrated from github.com)

Fixed, reduced 60 queries per page load by passing arguments instead of using in_comic_category()

Fixed, reduced 60 queries per page load by passing arguments instead of using in_comic_category()
johnbintz commented 2009-12-31 02:38:37 +00:00 (Migrated from github.com)

In what commit was this change made?

In what commit was this change made?
Frumph commented 2009-12-31 08:39:28 +00:00 (Migrated from github.com)
http://github.com/johnbintz/comicpress-2.8/commit/e2fa538ee4deb3b6e28d5e75645867782433f8c5
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: github-migration/comicpress-2.8#32
No description provided.