Hi folks
I'm getting more and more interested in caching my db-driven site and I have a few questions. I can understand how to cache and compare against the cache when it comes to php-files that the admins changes once in a while -> just to look at the modification date. But how can it be done best on for example a guestbook?
In my guestbook the actual php-file never changes so it's no use comparing the cached file's mod-date. One thing that could be compared against is filesize, but then the script must execute first so it's no good. Another idea is to save the last post-date somewhere and compare that date with the cached file's creation-date? OR should I md5 the lastpost-date into the cached filename or something to comparewith...?
Sure, u might say that it is no point in caching a guestbook - but it is just as an example! I'm interested in the whole dynamic site vs cache discussion. I want to create an own solution and not use any template stuff...
That's all folks!