Archived topic
Odd Query
2 replies · Started by Matthew on August 29, 2019
I'm running a query analyzer plugin which shows all the queries to the db during runtime.
I'm on one of my pages which is static. It doesn't have anything which should be pulling from the db. It has static elements, static menu, static footer.
The analyzer is showing two identical queries which invovle a pull of all published posts from the db and the query will seemingly increase as I add more posts...
Any clue what's causing this? It seems to originate from generatepress and has something to do with navigation...
https://www.dropbox.com/s/tss80fro4ye8uex/odd%20query.png?dl=0
I need a coffee. It's actually pulling the nav menu items themselves which I forgot are stored as posts.
Glad to hear you got it resolved.
I think i'll join you on that coffee lol