Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-2246

Provide clearer explanation of defaults and optional properties in documentation of eager-recaching

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Neutral Neutral
    • None
    • 6.2.9
    • None

      From current documentation it is confusing at first glanc what needs to be configured and what is already provided by default and can be optionally switched off. Separating the two would make documentation easier to read and make it harder for users to make a mistake. For more details see original description of the problem (and misunderstanding) from the user.

       

      Original description:

      We configured eager-recaching on our server but wondering why the contents of the hitlist were always droped on flushing. After looking into the source code of EagerRecacheFlushPolicy i think i found the problem: the documentation (https://docs.magnolia-cms.com/product-docs/6.2/Modules/List-of-modules/Advanced-cache-modules/Advanced-Cache-Policies-module.html#_eager_re_caching) states to set the property resetAfterUpdate to true. However by the looks of the code:

      This leads to the flush policy droping the contents of the Hitlist, thus ignoring the information about the most recently gathered Hits, which is what the policy uses to refresh the cache contents after a flush.

      Isn't that what you ideally do not want in your cache configuration? Indeed it looks like, after setting resetAfterUpdate to false, the contents of our cache stay populated now..

       

        Acceptance criteria

              akhamis Ashraf Khamis
              martyglaubitz Marty Glaubitz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: