Cache Warmer

By setting

cache_warmer: true

Every component request is stored in the file tmp/cache/svelte-on-rails/component-requests.json.

When the app boots up, it checks the TTL time (which can be configured using the redis_cache_store/expires_in setting) and, if necessary, initialises the component. This fills up some instance caches. Therefore, the first load is as fast as the second request.


Copyright © 2025-2027 sedlmair.ch. Distributed by MIT license.