Closed (works as designed)
Project:
Cache Graceful
Version:
7.x-1.3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2013 at 21:26 UTC
Updated:
2 Jul 2013 at 14:37 UTC
If I configure cache graceful as the cache backend, is there a global prefetch time for all caches which have an expiration time?
I'm trying to determine if the module will change the behavior of existing cache mechanisms not explicitly called from the cache graceful API or configured in views/panels.
Thank you.
Comments
Comment #1
gielfeldt commentedHi
Yes, it works a bit different though. You can set a "stale" period, which is added to the expiration time on a cache entry.
In settings.php:
$conf['cache_graceful_stale'] = 30; // 30 seconds stale period for cache entries
Comment #2
tseven commentedJust for clarification, is this stale setting applied to all caches with an expiration?
For example Drupal's default page caching?
The default stale setting looks to be 30 seconds. So will the default page cache be refreshed 30 seconds before it expires?
Thanks
Comment #3
gielfeldt commentedHi tseven
Drupals page cache uses the time from the http expires header. Example: If the page expires 60 seconds into the future, the cache entry is actually set to 90 seconds. After the 60 seconds, the next request for the page will force a refresh. A lock is then set, so that concurrent requests receive the "old" cache, until the request refreshing the page is done.
Comment #4
gielfeldt commentedDid this answer your question?
Comment #5
gielfeldt commented