Hi,

I'm using beaker_cache to cache results of some actions. The problem is, their result (the template used) depends sometimes on the domain which is used in the request (the same application is available under different domains).

Right now I have something like this:

@beaker_cache(expire=600, query_args=True)
def group(self, id, portal=request.environ.get('HTTP_HOST', '')):

The portal argument is there just to force beaker_cache to include the domain in key generation (I didn't find another way). This however, does not work as expected.

I try to access the page first using domain1, then domain2. If I do raise Exception at the beginning of the action I can see that for domain1 key_dict = {'id': u'1', 'portal': 'domain1'}, but for domain2 key_dict is also {'id': u'1', 'portal': 'domain1'} ! Why is it like that? Is the request object somehow cached too? Why? How can I disable it?

Regards,
--
Juliusz Gonera
http://juliuszgonera.com/

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to