Hello all, I'm face an issue while using the cache middleware :
[Fri Aug 18 13:00:52 2006] [error] [client 10.0.0.199] PythonHandler django.core.handlers.modpython: File "/usr/lib/python2.4/site-packages/django/utils/cache.py", line 161, in learn_cache_key\n cache.set(cache_key, headerlist, cache_timeout) [Fri Aug 18 13:00:52 2006] [error] [client 10.0.0.199] PythonHandler django.core.handlers.modpython: File "/usr/lib/python2.4/site-packages/django/core/cache/backends/filebased.py", line 48, in set\n pickle.dump(now + timeout, f, 2) [Fri Aug 18 13:00:52 2006] [error] [client 10.0.0.199] PythonHandler django.core.handlers.modpython: TypeError: unsupported operand type(s) for +: 'float' and 'str' Changing /usr/lib/python2.4/site-packages/django/middleware/cache.py line 161 to self.cache_timeout = int(settings.CACHE_MIDDLEWARE_SECONDS) solved the problem. I'm running : mod_python 3.1.4-r1 apache 2.0.58-r2 python 2.4.3-r1 Settings : #CACHE_BACKEND = 'memcached://127.0.0.1:22162/' CACHE_MIDDLEWARE_SECONDS = '300' CACHE_MIDDLEWARE_KEY_PREFIX = 'djan_' CACHE_BACKEND = 'file:///home/django/cache' I've just svn django source from trunk Regards, xav --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---