Skip to main content
Level 4
Dec 1, 2015 12:24 PM UTC
Solved

need to deny Invalidation on /content/dam/*.pdf

Hi All,

I need to add a rule in Invalidate section of dispatcher.any to deny invalidation for all the .pdf  under /content/dam.

I added the rule { /glob "* /content/dam/*" /type "deny" } --> but not sure how to test it.

after adding this rule i activated page and in logs i saw still it is trying to touch "Touched /data/httpd/html/cq5dispatcher/publisher/content/dam/.stat".

 

Pleas let me know how to deny form getting invalidated and how to test it.

 

Thanks, Mahesh

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Mahesh_VikramAccepted solution
Level 4
Dec 4, 2015 3:49 PM UTC

Below rule worked for me.

{ /glob "/content/dam/*" /type "deny" }

3 replies

Sham_HC
Level 10
Dec 1, 2015 3:18 PM UTC

Hi Mahesh,

Invalidate section add [A] . More details at  https://docs.adobe.com/docs/en/dispatcher/disp-config.html#Automatically%20Invalidating%20Cached%20Files

[A]      /0003 { /glob "*.pdf" /type "deny" }

Thanks,

Translate
Level 4
Dec 1, 2015 4:59 PM UTC

This rule :- /0003 { /glob "*.pdf" /type "deny" }, will deny every thing with .pdf.

Something we are trying to optimise, like "deny" auto invalidation .pdf  files under /content/dam/ 

other than /content/dam/ we what to allow auto invalidate, for that we added 

 { /glob "*.pdf" /type "allow" } under this rule we added below rule:-

 { /glob "* /content/dam/*" /type "deny" }

Not working, any thing i am missing here.

Translate
Mahesh_VikramAuthorAccepted solution
Level 4
Dec 4, 2015 3:49 PM UTC

Below rule worked for me.

{ /glob "/content/dam/*" /type "deny" }

Translate