Skip to content

Translation cache warming ineffective since #34129 #34395

Closed
@jaikdean

Description

@jaikdean

Symfony version(s) affected: 4.3.7/4.3.8

Description
Since 4.3.7, warming translation caches then deploying to a different path results in the warmed cached being ignored and regenerated. I believe this is caused by the change in #34129, which effectively adds the full project path to the cache key for the translator.

How to reproduce

  • Warm the translation cache.
  • Rename the project directory.
  • Warm the translation cache again. At this point, the translation cache file names will change.

For example, var/cache/prod/translations/catalogue.en_GB.FOO.php will be replaced with var/cache/prod/translations/catalogue.en_GB.BAR.php.

Possible Solution
Could the project directory be removed from the paths in "scanned_directories"?

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