8000 Subsequent calls to `cache:clear` delete warmed up files · Issue #50474 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Subsequent calls to cache:clear delete warmed up files #50474
Closed
@okhoshi

Description

@okhoshi

Symfony version(s) affected

5.4.24,6.2.11

Description

#50253 forces the cache:clear to always run in the cache_dir, even when both build_dir and cache_dir are the same directory.

This leads to some files being deleted if the container cache is not fresh (which is always the case if the cache_dir directory was already existing and warmed up).

Since the optional CacheWarmers are run in the cache_dir, their artefacts are lost once the cache_dir is replaced with the warmup directory.

How to reproduce

s new --dir symfony_cache_dir_problem
cd ./symfony_cache_dir_problem
composer install -q
# See that router cache is warmed up
composer install -q
# See that router cache is missing

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0