I'm throwing together a Pylons 0.9.7 app for an R&D project at work,
and I'm having a hard time finding decent documentation on how to
configure the memcached backend for beaker.
In my development.ini:
beaker.cache.type = memcached
beaker.cache.url = 192.168.x.x:11211;192.168.x.x:11211
In my controller
from pylons.decorators.cache import beaker_cache
def HomeController(BaseController):
@beaker_cache()
def index(self):
return "index"
The error I'm receiving:
TypeError: No object (name: cache) has been registered for this thread
I'm pretty sure I have a configuration problem, but I'm finding the
docs to be either broken (bad links) or very sparse regarding this.
Essentially, I'd like to know how to cache entire pages, as well as
the results from arbitrary functions.
Thanks
--
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.