Ticket #14199: patch.diff

File patch.diff, 593 bytes (added by Tim Valenta, 14 years ago)

Adds a line to derive local table var

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

     
    124124        if self._cull_frequency == 0:
    125125            self.clear()
    126126        else:
     127            table = connections[db].ops.quote_name(self._table)
    127128            cursor.execute("DELETE FROM %s WHERE expires < %%s" % table,
    128129                           [connections[db].ops.value_to_db_datetime(now)])
    129130            cursor.execute("SELECT COUNT(*) FROM %s" % table)
Back to Top