There's no domainName voter yet, but you are most welcome to create it and 
submit a patch.

With ETK, you can do 
((ExtendedAggregationState) MgnlContext.getAggregationState()).getDomainName()

so all you need to do in a voter is to compare that against value set in the 
voter.

Cheers,
Jan

On May 19, 2010, at 2:46 PM, Matteo Pelucco wrote:

> 
> Hi all, third (and hope last) question for today..
> 
> The goal is simple: how can I disable cache for the homepage of a certain 
> site in a 4.3.1 EE (so, ETK and site-domains activated)?
> 
> Before (on 4.1) we used an exclude voter:
> 
> ***
> class: info.magnolia.voting.voters.URIPatternVoter
> pattern: /site-xx?$
> ***
> 
> where /site-xx was the root of that site.
> 
> But now, on 4.3.1, we arrive on that page directly with www.site-xx.com, so 
> the URI is "/". It is obvious that I can not use that voter anymore, because 
> all the root of every site wouldn't be cached.
> 
> Are there other voters, maybe site-based?
> Or other way I can avoid cache for a homepage of a site?
> 
> Thanks a lot for any helps, and sorry fir asking so much.
> Matteo
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------

-  
Best regards,

Jan Haderka, PhD.
Magnolia International Ltd.

http://www.magnolia-cms.com
http://twitter.com/magnolia_cms

You should join us on Facebook:
http://facebook.com/Magnolia

--------------------------------------

Magnolia®  - Simple Open-Source Content Management




----------------------------------------------------------------
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