Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Keep possibility to disable in-memory caching of routes #57640

Closed
@mpdude

Description

@mpdude

Description

Here is one use case for the feature that was postponed in #53059. Opening as a new issue so it does not get lost in the already-closed issue. We can close this one here once #53059 is re-opened.

The use case is that it may be necessary to work with different sets of routes during functional tests. The Router keeps the routes in a private static $cache property, which makes it impossible to change the routes once one set has been loaded.

Setting $cache_dir to null disables the part of the code where routes are dumped to a cache file and the results of that file are loaded into the ::$cache property.

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions