You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've rejigged the requirements for this after an initial investigation. I don't think enable and disable would be doable with the way the manifest is loaded on every request.
SilverStripe's cache management is still fairly singular. You can configure different cache services via injector, which is something that we could surface with a command like this (e.g. cache:list lists all CacheInterface implementations registered under Injector, with their cache status, TTL etc), and we could allow each of them to be individually flushed.
I expect in future that more granular cache entry separation and handling might become more important in core, so this could be a useful command to add proactively.
cache:list
: list all cache IDs as well as some information about themcache:dump
: Dump the contents of everything in the cache, or by IDcache:flush
: Clear the entire cache manifestThis can be incorporated as an argument ofcache:view
: View the contents of specific cache entries by keycache:dump
cache:remove
Remove specific cache entries by keyI'm not sure that the ConfigManifest will actually let us do these:
cache:enable
: Enable the global cache (if disabled)cache:disable
: Disable the global cache (if enabled)The text was updated successfully, but these errors were encountered: