Ok, this one has me confused!
I have a template which has 3 module tags on it, a couple of embeds, pretty standard deal really.
1) The first tag serves out any pages module entries (and has caching parameters)
2) Second tag serves the category heading (if category url is present, also has caching parameters)
3) This tag deals out any entries that are in the category defined by the URL (again, cache parameters present)
Now, the problem is when accessing the template without category url (example.com/template/) the cache is created and number of queries drops expectedly. When accessing with a category url (example.com/template/c/category-name/) the cache files are not created and the number of queries remain quite high.
It’s not a permissions problem since the initial entry to the template gets cached correctly.
Hopefully it’s a simple problem, hopefully :D