Uploaded image for project: 'Cache Modules'
  1. Cache Modules
  2. MGNLCACHE-50

Provide possibility to exclude errors from being cached

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Neutral
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: configuration
    • Labels:
      None
    • Patch included:
      Yes

      Description

      Right now, Magnolia will include/exclude items from being cached based on various rules.
      One can even influence cache behaviour by setting cache headers in the response before rendering starts (and response is committed).
      However there is no way to react based on some arbitrary events that happen during rendering or based on the response code. This would for example allow excluding items from cache in case someone generates number of 404 requests just by trying to fish for valid URLs on the site.

      Attached is an example of executor that would not store items in case of errors, but rather then having specialized executor, this behaviour should be configurable.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              had Jan Haderka
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated: