I desperately need help figuring out why my site is making over 2500 database queries each time a page loads. The hosting company looked into it somewhat and said that it's accessing the usermeta table for each user on every page load, but couldn't tell me much more than that. I did have the permalinks set up as /%category%/%postname%/ and read somewhere that it can cause extra database queries so I switched it to /%postid%/%postname%/ just on the main site, but it hasn't made a difference. Also the site is using varnish cache so if your not logged each page is cached for 5 minutes and will appear to load fast for each subsequent visit, but it's still slow on first page loads and logged in users. If anyone can offer any insight into this I would greatly appreciate it. Please let me know if you need me to grant you access to the site if you would like to take a look. Thank you.