Uploaded image for project: 'External DAMs'
  1. External DAMs
  2. EXTDAM-287

Provide a command for flushing a cache by name

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None

      I'm not able to refresh the view to see assets that might have been uploaded through the s3 management console. I have to restart and reconnect to refresh the view.

      Reproduce

      • Install the s3 external dam connector.
      • Open the dam app.
      • Upload a new file through the AWS console.
      • Observe the new file is not available.

      Expected
      There should be a way to refresh the view. Ether by action or closing and reopening the app.

      AC
      Create command in magnolia-addon-commons-cache module that allows flushing cache by name

      Workaround options
      Cache expiry configuration can be adjusted:

      cacheConfigurations:
        s3:
          caches:
            s3-objects: maximumSize=500, expireAfterAccess=10m
            s3-buckets: expireAfterAccess=60m 
      

      See External DAM module - configuring the cache.

      With a groovy script:

      import info.magnolia.objectfactory.Components
       
      cacheManager = Components.getComponent(info.magnolia.addon.commons.cache.CacheManager)
      cacheManager.evictCache("s3-objects")
      println "s3 cache cleared"
      

        Acceptance criteria

              Unassigned Unassigned
              rgange Richard Gange
              AuthorX
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:

                  Task DoD