endpoint_cache_preheat
This module provides functionality to pre-heat caches for expensive endpoints asynchronously to prevent failures during calls or cron jobs.
Key Features
- endpoint.mixin: Adds an automatic cache pre-heat boolean field to enable scheduled cache warming.
- endpoint.mixin: Includes a timestamp field to track the last cache pre-heat operation.
- endpoint.mixin: Implements a cron job that periodically pre-heats caches based on the endpoint's cache policy (daily, weekly, or monthly).
- endpoint.mixin: Provides an asynchronous action to manually trigger cache pre-heating via a queue job.
- endpoint.mixin: Resets the pre-heat timestamp when the cache is wiped to ensure accurate tracking.