I moved my site to another server and I'm getting a Beaker cache error.

===
Module pylons.controllers.core:60 in _perform_call
<<          """Hide the traceback for everything above this method"""
               __traceback_hide__ = 'before_and_this'
               return func(**args)

           def _inspect_call(self, func):
>>  return func(**args)
Module ?:2 in all_incidents
Module pylons.decorators.cache:97 in wrapper
<<              b_kwargs['type'] = type

               my_cache = pylons.cache.get_cache(namespace, **b_kwargs)

               if expire == "never":
>>  my_cache = pylons.cache.get_cache(namespace, **b_kwargs)
Module beaker.cache:187 in get_cache
<<          kw = self.kwargs.copy()
               kw.update(kwargs)
               return self.caches.setdefault(name + str(kw), Cache(name, **kw))

           def get_cache_region(self, name, region):
>>  return self.caches.setdefault(name + str(kw), Cache(name, **kw))
Module beaker.cache:104 in __init__
<<              raise TypeError("Unknown cache implementation %r" % type)

               self.namespace = cls(namespace, **nsargs)
               self.expiretime = expiretime or expire
               self.starttime = starttime
>>  self.namespace = cls(namespace, **nsargs)
Module beaker.container:485 in __init__
<<
               if not file_dir and not data_dir:
                   raise MissingCacheParameter("data_dir or file_dir
is required")
               elif file_dir:
                   self.file_dir = file_dir
>>  raise MissingCacheParameter("data_dir or file_dir is required")
MissingCacheParameter: data_dir or file_dir is required
===


The action has a decorator like this:

===
    @beaker_cache(key=None, expire=config["cache.data"], type="file",
        query_args=False)
    def all_incidents(self):
===

The production.ini entries are:

===
data_dir = /home/wwwadmin/data/inews
cache_dir = %(data_dir)s

beaker.cache.data_dir = %(data_dir)s/cache
beaker.session.data_dir = %(data_dir)s/sessions

#cache.dir = %(data_dir)s
===

Sessions are working fine.  I've got Pylons 0.9.7 and Beaker 1.3.1

-- 
Mike Orr <[email protected]>

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