This is what the first line from devel tells me:
Executed 10930 queries in 3177.9 milliseconds. Queries taking longer than 5000 ms and queries executed more than once, are highlighted. Page execution time was 8976.56 ms
This sounds like a lot. What/where should I look for to find the cause of this?
UPDATE - THIS HELPED I found a solution at http://drupal.org/node/402944. I applied the fix in _menu_link_translate (menu.inc). Now I'm down to 1500 queries.
UPDATE: Two methods are called extensively, and generating a lot of queries:
drupal_lookup_path (around 600) queries, in the form of:
SELECT src FROM url_alias WHERE dst = 'node/81528/edit' AND language IN('da', '') ORDER BY language DESC
_ad_channel_load_node (around 1800 queries). This method queries mysql three times. Apparently the method is called on node_load.
Regarding caching, I think I would start to find a way to reduce the number of queries. Something seems to be a bit off.
P.S. I'm new at drupal.
Well, look at the queries below (enable query display if you haven't already). Try to count which functions are executing the most and slowest queries. Then try to figure out which module they belong and what they are doing.
Caches are cleared when a node is edited, so there is a large amount of data that needs to be loaded again.