I'm a little confused about how to design the caching of a Forum.
For example, considering a threads list:
Title | Author | Last Reply Time | Last Reply User
abcd | x | 12:12 | y
bcde | z | 23:21 | m
The list is paginated, say there are 20 threads each page. A simple caching mechanism is to materialized each page on disk. However, when a new thread is added, all the pages' caches have to be updated, since in this case the content of every page is changed. Is there any better approach to cache the threads list so as to avoid frequently removing and re-creating all the cache files?
Hope someone could enlighten me, thanks!