Is there ever a time when you should use caching? Like for frequently updated pages? Or, should you always cache?
Please give examples and reason?
Guess it depends on what you mean by cache.
All of these play a role in site optimization, and use is determined by how dynamic your data is, whether the client is logged in, and countless other factors. The simple answer is to cache wherever you can, at the level which consumes the fewest resources, without compromising user experience.
I'm assuming you meant 'shouldn't use caching?' otherwise you should really always use caching for pages that need it. (lots of server side rendering and sql...).
A cache is used to send out pre-rendered pages opposed doing the logic and the database queries for every single request. drasticly speeds up everything. An option is to just clear the cache more often.. not necisarily turn if off.
There are times where you want no cache.. like an admin panel or something that has to be updated immedietly, every time.
A cache should be used for pages: that don't change a lot or have to be constantly parsed by php if there as a lot of work to render the page like database calls or a lot of utilitly scripts. if it is requested a lot. like a home page.