3 ms·
Why isn't it a possibility to rebuild and invalidate the cache only when the rebuild is finished?
by forgotpwtomain 11y ago
Why isn't it a possibility to rebuild and invalidate the cache only when the rebuild is finished?
- homero 11y agoBecause it's usually triggered with the cache expiring then it's not available and every page view attempts rebuilds. Otherwise the cache and time will be separate. I store the cache in memcached with an expiration to detect it expiring
- forgotpwtomain 11y agoYou could queue an async job to rebuild what was stored in the cache right before the expiration time when you update / renew the expiration on the cached item?