Ticket #5981: 5981-1.diff

File 5981-1.diff, 601 bytes (added by Matt McClanahan, 17 years ago)
  • django/core/cache/backends/locmem.py

     
    1515        self._lock = RWLock()
    1616
    1717    def add(self, key, value, timeout=None):
     18        print 'LM add called'
    1819        self._lock.writer_enters()
    1920        try:
    20             SimpleCacheClass.add(self, key, value, timeout)
     21            super(CacheClass, self).add(key, pickle.dumps(value), timeout)
    2122        finally:
    2223            self._lock.writer_leaves()
    2324
Back to Top