Don't use pylibmc behaviours, not supported in the version used in production
authorMagnus Hagander <magnus@hagander.net>
Sat, 12 Jan 2013 17:41:18 +0000 (18:41 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sat, 12 Jan 2013 17:41:18 +0000 (18:41 +0100)
pgweb/search/views.py

index 45c5efa7d61d1ce074413b078935f2108b249b9a..49eb31599ad886279ae60c0762d8aec8f4e30d6d 100644 (file)
@@ -168,7 +168,8 @@ def search(request):
                # If memcached is available, let's try it
                hits = None
                if has_memcached:
-                       memc = pylibmc.Client(['127.0.0.1',], binary=True, behaviors={'tcp_nodelay':True})
+                       memc = pylibmc.Client(['127.0.0.1',], binary=True)
+                       # behavior not supported on pylibmc in squeeze:: behaviors={'tcp_nodelay':True})
                        try:
                                hits = memc.get(urlstr)
                        except Exception, e: