Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-977

Cache module never flush cache

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.0 RC3
    • 3.0 RC2
    • None
    • None
    • Linux

      When a page is published from magnoliaAuthor to magnoliaPublic, the cache module is supposed to flush the cache directory of magnoliaPublic. It never happens as the flushAll function of class info.magnolia.cms.cache.simple.CacheImpl uses the function delete of class java.io.File. This function does not work if the directory is not empty. Moreover, the mkdirs funtion of the cache directory will be called only if the cache directory exists.

      Say the cache is activated in magnoliaPublic. The end user will see a newly published page as appropriate (first load in cache). If ever modifications on this page are made and the page is republished, it will never be seen.

        Acceptance criteria

              fgiust Fabrizio Giustina
              sgalles Stephane Galles
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: