Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-154

CacheAccess.clear() does not clear indexed disk cache

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: jcs-2.0-beta-1
    • Fix Version/s: jcs-2.0-beta-2
    • Component/s: Indexed Disk Cache
    • Labels:
      None

      Description

      I created a cache using an auxiliary indexed disk cache. Calling clear() on the cache does not free disk space allocated by the disk cache. I suspect this also affects other auxiliary caches.

      In fact, adding new objects to the cache using the old keys, keeps allocating more disk space.

      E.g.: create cache, store a BLOB of 1 MB with key "A". 1 MB disk space is allocated for the BLOB. Now call clear() on the CacheAccess object. Store another 1 MB BLOB with key "A". Now 2 MB are allocated.

      Calling AuxiliaryCache.removeAll() on the disk cache frees the disk space, though.

        Attachments

          Activity

            People

            • Assignee:
              tv Thomas Vandahl
              Reporter:
              mjmjmj Matthias Jordan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: