Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10585

Add support for invalidation requests

    XMLWordPrintableJSON

Details

    Description

      Caching invalidation is typically triggered by content distribution, after processing an `ADD` or `DELETE` distribution request. When distributing referenced content, invalidation must also include on the referencing resources. To support this use case, we'll add support for a new type of distribution request that invalidates the caches without importing content.

      To support this, the org.apache.sling.distribution.DistributionRequestType API will be extended with

      /**
       * Action type for invalidating content
       */
      INVALIDATE,
      

      The PackageMessage.ReqType will be extended with the new INVALIDATION type.

      The DistributionPublisher will handle the invalidation distribution requests by sending a package message with the INVALIDATION type and no payload (like the DELETE package messages).

      The DistributionSubscriber will process invalidation messages by raising imported events and invoking the import post processors.

      Attachments

        Activity

          People

            balasoiu Roxana-Elena Balasoiu
            marett Timothee Maret
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m