8000 Invalid translation cache after download command execution (with --cache) · Issue #198 · php-translation/symfony-bundle · GitHub
[go: up one dir, main page]

Skip to content
Invalid translation cache after download command execution (with --cache) #198
Closed
@welcoMattic

Description

@welcoMattic

We (with @damienalexandre and @lyrixx) catch an issue with the DownloadCommand.

Steps to reproduce

  • We start with an empty cache.
  • We do not have any of our translation files versioned.
  • We execute the download command to fetch from Loco (or anywhere else).
  • Symfony builds its container with a hardcoded translation files list which do not contains the fresh downloaded files.
  • We execute again and again the download command with --cache option, and Symfony's container will rebuild the translation cache files with the old hardcoded list of files. So it never builds cache with new downloaded files.

Quick fix

  • Run cache:clear just after the first download command execution.

Expected behaviour

After the first run of download command, Symfony's container must be rebuilt with all translation files, to be able to warm-up cache for these files.

We know that it will be hard to fix this issue because it concerns Symfony's way to build container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0