What is the difference between "CQ-Action: Activate", "CQ-Action: Deactivate", "CQ-Action: Delete" while sending a Curl request to dispatcher to invalidate the cache?
Is there any API that lists down these methods?
Which action should be used if I simply want to touch the statsfile for the payload?
This documentation is a bit confusing as it states that the dispatcher deletes files on "CQ-Action: Activate". And the Curl Commands documentation states that "CQ-Action: Activate" is used to invalidate the cache. For evicting cache, "CQ-Action: Deactivate" is used.
Content paths can either be invalidatedor flushedfrom the AEM Dispatcher cache.
AEM Dispatcher behavior - invalidate performs a cache invalidation, similar to when content is activated from author to publish (CQ-Action: Activate, CQ-Action: Deactivate) flush performs a cache deletion (CQ-Action: Delete).
In general, the use of the invalidate action is preferable but there may be cases where flushing is required, especially when using AEM HTML Client Libraries.