Ticket #14199: patch.diff
File patch.diff, 593 bytes (added by , 14 years ago) |
---|
-
django/core/cache/backends/db.py
124 124 if self._cull_frequency == 0: 125 125 self.clear() 126 126 else: 127 table = connections[db].ops.quote_name(self._table) 127 128 cursor.execute("DELETE FROM %s WHERE expires < %%s" % table, 128 129 [connections[db].ops.value_to_db_datetime(now)]) 129 130 cursor.execute("SELECT COUNT(*) FROM %s" % table)