-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPIKE: Investigate ways to get configurable cache adapter prior to loading config #11257
Comments
Some possible options Steve and I have already thought of:
|
Turns out there's already a In practice you'd probably have to use a factory, so you can use additional env vars to configure it. So you'd probably have a It's a bit crumby though - a single yaml config would be better so you don't have to remember to set the env var for it. I'll keep digging to see if there's something else we can do. For now though that's a good fallback position. |
Looks like the env variable is the way to go - I played around with some other ideas but nothing really panned out. Closest I got was with the idea of caching some amount of the injector config separately from the main config cache - but it got way too messy. |
#11145 points out a problem with APCu cache which is the current in-memory cache adapter. This is hard coded to be used if it's available, and not used if it's not.
Other cache adapters can be configured for many things, but the manifests will always use this default setup.
If we want to be able to configure the in-memory cache to be any arbitrary PSR6/PSR16 cache adapter, we need to be able to provide that configuration prior to booting the manifests. See
BaseKernel::__construct()
.Timebox
2 days
Spike objectives
The text was updated successfully, but these errors were encountered: