Skip to content

API and documentation for _config_static cache #7009

@quicksketch

Description

@quicksketch

Description of the need

The ability to cache configuration files in memory is poorly documented and in some ways "hidden", in that it does not have any way to enable/disable it other than to know the special key _config_static in config files. We've run into several places in core where this flag is misconfigured or misunderstood:

Proposed solution

We should introduce an API for setting this special flag, which will provide a location to document how and why to use it. It's also an opportunity to expand test coverage.

Draft of feature description for Press Release (1 paragraph at most)

The API for configuration management now includes methods for enabling and disabling in-memory caching. While the cache is not new, the new APIs provide documentation and make it easier for modules to enable configuration caching.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions