-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
Observed Behavior
- Global
cacheblock configures a storage provider (e.g.,badger). - A site-level
cacheblock is defined without any storage directives. - At runtime, Souin logs repeated warnings: “You’re running Souin with the default storage that is not optimized and for development purpose. We recommend to use at least one of the storages from https://github.com/darkweak/storages”.
- In the effective configuration, the site-level
badger(and other providers) appear asnullin JSON.
Steps to Reproduce
- Add a global
cacheblock with a storage provider:{ cache { badger { path /tmp/badger } } } - Add a site-level
cacheblock without storage directives:example.com { cache { ttl 10s } reverse_proxy localhost:8080 }
- Start Caddy and observe the warnings in the logs.
Actual Result
- Site-level
cacheblocks without storage directives do not use the globally configured storage. - The system falls back to the default in-memory storage and logs warnings.
Expected Result
- Site-level
cacheblocks should use the globally configured storage when no storage directives are provided at the site level.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels