Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-17982

Directory should provide a default caching configuration

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.3
    • Component/s: Cache, Directory
    • Release Notes Description:
      Hide

      If a cache name is not defined in the directory description, a cache named <directoryname>-cache will be created with the values of the default-cache.

      Show
      If a cache name is not defined in the directory description, a cache named <directoryname>-cache will be created with the values of the default-cache.
    • Sprint:
      nxcore 9.3.7, nxcore 9.3.8
    • Story Points:
      3

      Description

      Assign a cache to each directory

      Currently if a directory is not explicitly associated to a cache : there is no cache.

      Although it makes sense, in terms of performance this is not good.

      We should change this logic and have something like :

      • if a cache name is defined : use it
      • otherwise check if <directoryname>-cache is defined
        • if yes use it
        • otherwise create it

      NB : we should have a specific flag to explicitly specify the 'no-cache'

      Define the default caching config

      If the directory can automatically create their own cache we need to have a way to define what is the default :

      • implementation class
      • size
      • TTL

      This makes also sense to have a global "default" template that you can change so that any cache that does not explicitly define these attribute would inherit from the template.

      The simplest solution seem to be to have an other extension point that allows to define a cache template, and use it as a base for merging/completing all the cache contributions.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days
                  2d

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.