I am stuck on this one. Caching with memcached works when I reference
the local box holding Django. But when I point my setting to a remote
box it does not cache:
This is with Django 1.3 using python-memcached on the localbox in a
virtualenv
'default': {
'BACKEND':
'django.core.cache.backends.memcached.MemcachedCache',
#'LOCATION': ['127.0.0.1:11211',] # This works
'LOCATION': ['xx.xxx.xxx.xx:11211',] # This remote one does not
}
My settings file appears to have the proper middleware installed:
"django.middleware.gzip.GZipMiddleware",
"django.middleware.cache.UpdateCacheMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.redirects.middleware.RedirectFallbackMiddleware",
"mezzanine.core.middleware.DeviceAwareUpdateCacheMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"mezzanine.core.middleware.DeviceAwareFetchFromCacheMiddleware",
"mezzanine.core.middleware.AdminLoginInterfaceSelector",
"django.middleware.cache.FetchFromCacheMiddleware",
I've checked that memcached is running on the remote box. I am
probably overlooking something simple.
Any help is greatly appreciated.
Thanks,
Matt
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment