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

gielfeldt’s picture

Hi

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

tseven’s picture

Just 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

gielfeldt’s picture

Hi 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.

gielfeldt’s picture

Status: Active » Postponed (maintainer needs more info)

Did this answer your question?

gielfeldt’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)