Hi Will,

the URIPatternVoter takes the pattern and tries to match the regular expression. So both ( /root and /root$ ) should work

Ralf

Will Scheidegger schrieb:

Good morning

I need to exclude the root page of one of our Magnolia sites from being cached.

- root
    - home en
    - home fr
    - home de

"root" should not be cached, all its subpages however should be cached.

To do this, I added the following cache configuration and would like to know if the "pattern" is right, i.e. if the subpages are cached that way:

- /modules/cache/config/configurations/default/cachePolicy/voters/urls/excludes
    - myRoot
        - class: info.magnolia.voting.voters.URIPatternVoter
        - pattern: /root

Or do I need to add a $ to the pattern (i.e. "/root$")?

Regards,
Will

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
----------------------------------------------------------------

Reply via email to