Open iCantSneed opened 3 weeks ago
Amendment: after deploying a new version, the index page displays the old version number. That's because the twig templates also get cached. Therefore, to be on the safe side that we have no stale data, the entire cache directory is to be deleted.
If the signature for a critical file changes, the post-deploy actions can fail because the container tries to incorrectly load a source file. The stale var/prod/Container* directories should be removed prior to running those actions.
Consider removing calls to cache:clear with a directory removal process, to be run as the first command (before composer). Cache will be rebuilt once the other post-deploy actions will be run.