Most examples use time-based cache expiration. I’d like to read more about file caches (where the database is called only when there is no file in a given directory). This is for a basic information site with CMS functions made with php/mysql. My searches are returning too many sites on web applications. Adding CMS to the search returns script repositories. I’d appreciate your suggestions.
Most examples use time-based cache expiration. I’d like to read more about file caches
Share
I’m not quite sure what you’re looking for.
If you’re talking about generating a page (from the CMS) and placing it at the requested URI (so the next request bypasses even the CMS) – it’s possible, but you make refreshing the ‘cache’ a little difficult.
However, what you may be looking for is just a server side cache (as opposed to telling the browser how long to cache a page). Those are usually file or memory based, and if you place the caching mechanism high in the CMS flow (perhaps where it processes the requests), you’ll be caching a large portion of page creation.
Some cache libraries let you set an unlimited lifetime (for example
Zend_Cache), leaving the cache maintenance up to you. That may be what you’re looking for.