Ticket #15149: t15149-debug.diff

File t15149-debug.diff, 1.1 KB (added by Russell Keith-Magee, 14 years ago)

Additional debug for caching problems

  • django/core/cache/backends/memcached.py

    diff -r ab1e620b1eaf django/core/cache/backends/memcached.py
    a b  
    5353        return self._cache.add(key, value, self._get_memcache_timeout(timeout))
    5454
    5555    def get(self, key, default=None, version=None):
     56        print 'get base key =',key
     57        print 'get base version =',version
    5658        key = self.make_key(key, version=version)
     59        print 'get key =',key
    5760        val = self._cache.get(key)
     61        print 'get val =',val
    5862        if val is None:
    5963            return default
    6064        return val
    6165
    6266    def set(self, key, value, timeout=0, version=None):
     67        print 'set base key =',key
     68        print 'set base version =',version
    6369        key = self.make_key(key, version=version)
     70        print 'set key =',key
     71        print 'set timeout =',self._get_memcache_timeout(timeout)
    6472        self._cache.set(key, value, self._get_memcache_timeout(timeout))
    6573
    6674    def delete(self, key, version=None):
Back to Top