Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi there,

    That’s a heck of a lot of code!!! I say this to help you, because posts with loads of code often get deleted by the mods.

    If you have lots of code like this, it’s always a good idea to use http://pastebin.com, and then come back here and give us the link.

    Plus, with pastebin.com, you get the benefit of having your code syntax highlighted!

    Thread Starter skydrak

    (@skydrak)

    Thank you for this tip, I have posted it to pastebin. 😉

    Oh lovely, well done!

    When you say “single page” do you mean when you try to view just one post, as opposed to archive or home?

    This is very odd behaviour, and is probably a bug, I can’t see the developpers wanting to send over 500 queries for just one post!

    Do you have any plugins instaleld which might be causing the problem?

    Thread Starter skydrak

    (@skydrak)

    Not a post, a single page. I’ve checked all plugins and it doesn’t gave a better result.

    I found out that the numbers of the querys are so high when I browse the page over a permalink, if I browse over: http://trendhure.com/?page_id=1464 it needs only 14 querys, if I browse over http://www.trendhure.com/ice-age-vs-rammstein-video/ it needs 321. I don’t know why… 🙁

    Ouch! Popups!

    Did you know that your site generated popups?

    Thread Starter skydrak

    (@skydrak)

    Yes, I know, it is caused by my sponsor… 😉 2-3 TB traffic will be payed..

    I’d think about dropping the sponsor if that’s the case, one of them was for a site called “check dein sex” which wasn’t safe for work 🙁 it does reflect badly on your site, I have to say.

    I’m not sure as to what might be causing the queries. Is there anything in your theme file that might be causing it?

    You mentioned wp-cache()? What was your reason for that?

    yes, you need to disable the internal wp cache. I think it was off in one version, on in another, should be back off in the latest. add something like the following to your wp-config.php:
    define(‘DISABLE_CACHE’, true);

    That should turn the system off.

    Thread Starter skydrak

    (@skydrak)

    No, theres nothing in my theme that causing the queries. 🙁

    I looked up in the functions_post.php, there I saw that all pages are written into wp-cache.

    Thread Starter skydrak

    (@skydrak)

    I have tested to disable the cache, no better result. I think the permalinks are responsible for the queries. 🙁

    Why is the rewrite structure in 2.0 stored into the database? It is possible to store it in the .htaccess instead in the database?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Databasequerys messed up’ is closed to new replies.