I'm just applying some tag caching to templates on a client's site to improve performance (which isn't bad, but having no caching currently set could obviously be improved). I'm no expert at implementing caching in EE but I'm not seeing any reduction in database queries or in the memory used. So either I'm misunderstanding what I should be seeing, or I'm doing something wrong, or perhaps there is some setting that is preventing tag caching from taking place. (I'm aware of the disable_tag_caching config variable; mine is set to 'n').
Here's my testing process:
- Add cache="yes" refresh="720" parameters to a template's channel:entries tag
- turn on template debugger and output profiler via config variables
- Clear caches from the CP
- Load page template in front end, examine number of queries and memory used
- Reload page template, compare queries and memory usage to [4]
I would expect there to be a difference in the reported number of queries and, perhaps, the memory used, between stages 4 and 5, since -- as I understand it -- the content of the channel:entries tag will be generated by database queries in stage 4 but ought to be taken directly from the cache in stage 5. But I'm seeing the exact same numbers from both stages.
This really isn't a high traffic site at the moment, so I don't want to go down the road of buying a third party cache add-on if I can help it. I'd much prefer, at this stage, to understand either what I'm doing wrong (or misunderstanding) or, if my process is correct, what might be interfering with it.
Does anybody have any advice?