Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-8023

Cache is not deleted when uploading a new version of a document in ressource explorer

      How to reproduce

      • go to back-office
      • Create an article and add a link to a file named "myfile.pdf" in the ressource explorer
      • Validate
      • Go to front-office, display the page and click on the link to download the file "myfile.pdf"
      • go to back-office
      • upload again the file "myfile.pdf" in the ressource explorer, choose to create a new version of the file.
      • go to front-office, display the page and click on the link to download the file "myfile.pdf"

      Actual behavior

      • the downloaded file is the previous version of the file, the cache of ressources is not deleted.

          [CMS-8023] Cache is not deleted when uploading a new version of a document in ressource explorer

          Laurence Aumeunier added a comment - - edited

          The cache is not deleted as soon as the path of the resource contains special caracters or simple quote.

          The way the path of a resource is encoded is different when we write resource in cache and when we delete resource in cache. We have to use a common helper.

           

          Laurence Aumeunier added a comment - - edited The cache is not deleted as soon as the path of the resource contains special caracters or simple quote. The way the path of a resource is encoded is different when we write resource in cache and when we delete resource in cache. We have to use a common helper.  

            laurence Laurence Aumeunier
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: