Caching index pages
|
|
By QuickFox , Section Wishlist [] Posted on Sat May 07, 2005 at 12:00:00 PM PST
|
|
It seems only story pages are cached, not index pages, according to the Scoop Administrators Guide on Page Caching.
Why is this? Is it because it's difficult to keep track of changes and know when the cache copy is old?
If that's the reason, a very simple solution would be to have index-page caching where refreshing is not based on changes, instead the cache copies are very short-lived. A cache copy could be considered unusable if it's older than 15 seconds (admin adjustable).
|
Even if surges in traffic are very unusual, when they do occur, even this very short-lived cache copy could make a great difference. Recalculating the page four times a minute is far better than doing it several times a second.
On most sites this would of course mean that index-page caching is practically always wasted. Copies are almost always written to disk and almost never re-used. But this doesn't matter since this happens when there are few visitors and there's bandwidth to spare.
|
|
Story Views
|
146 Scoop users have viewed this story.
|
|