I’m just curious if anyone can think of a practical way to limit the number of additional queries generated by functions like the_permalink().
It’s interesting that you can pull 20 posts with 1 query, but you need 20 additional queries to pull the permalinks.
God help you if you use the_permalink() twice for each post.
I understand that caching the variable wouldn’t be practical, but I wonder, is it a good idea to cache the permalink in the posts table? — maybe there could be an option on the permalinks page to reset all the posts?
I’m just thinking out loud here – can anyone think of a better way?
- The topic ‘Curious about query minimization’ is closed to new replies.