Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Supprime le dossier d'un contenu au dernier moment lors d'une mise à …
…jour (#6509) Si le scénario suivant se produit : - on renomme un contenu déjà publié - on publie le contenu renommé - le dossier contenant tous les exports (notamment HTML) est supprimé - le slug de la version publique existante change, donc on met en place une redirection et on dit à ElasticSearch d'oublier cette version - cependant, ElasticSearch lève une exception qui n'est pas rattrapée On se retrouve alors avec une version publique du contenu correspondant à l'ancienne version (donc rien n'a changé pour la version publique), mais le dossier contenant les exports de cette version a tout de même été supprimé ! Cela cause des erreurs pour voir le contenu et toutes les pages qui listent la version publique du contenu (e.g. la page des contenus, la page de profil de l'auteur, la page d'accueil si le contenu était mis en avant). Il faut donc supprimer le dossier des exports au dernier moment, ce que fait ce commit.
- Loading branch information