cache_timeout with dogpile.cache and redis backend?

67 views
Skip to first unread message

Bill Curtis

unread,
Mar 28, 2013, 3:29:42 PM3/28/13
to mako-d...@googlegroups.com

I have installed dogpile.cache, and have it set up as our mako.cache in setup.py:

    [mako.cache]
    dogpile.cache=dogpile.cache.plugins.mako_cache:MakoPlugin

(side question -- can anyone confirm that this is the correct way to register it?  It /seems/ to be working...)

My main question has to do with setting a cache_timeout on a mako %def.

It looks like the cache_timeout value is getting ignored, in favor of whatever value is set for redis_expire_time. 

Is this intended behavior, or is support for def-level cache_timeouts not implemented yet?  Or maybe we have something setup wrong?

thanks,

--bill


Michael Bayer

unread,
Mar 28, 2013, 4:00:33 PM3/28/13
to mako-d...@googlegroups.com
the per-key expiration_time argument was added to dogpile.cache at some point but was not implemented for the Mako plugin.

If you can test https://bitbucket.org/zzzeek/dogpile.cache/get/default.tar.gz and let me know that this works now that would be great.  I've tested only using a mock approach so far.


--
You received this message because you are subscribed to the Google Groups "Mako Templates for Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mako-discuss...@googlegroups.com.
To post to this group, send email to mako-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/mako-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Bill Curtis

unread,
Mar 28, 2013, 4:42:31 PM3/28/13
to mako-d...@googlegroups.com
Hey Mike...

I have that installed, and so far it seems to be working.  Thanks a ton!

We will continue to move forward with it, and I'll let you know one way or the other if it keeps working, or it we come across anything weird.

cheers,
--Bill

Michael Bayer

unread,
Mar 28, 2013, 4:53:28 PM3/28/13
to mako-d...@googlegroups.com
OK great, might be time to release.

Bill Curtis

unread,
Apr 2, 2013, 1:37:30 PM4/2/13
to mako-d...@googlegroups.com
Hi Mike.  

Just wanted to follow up & let you know... we are using this in production for a couple of days now, no apparent problems.  Thanks again!

--bill
Reply all
Reply to author
Forward
0 new messages