mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
[py3] Fixed cache tests.
This commit is contained in:
2
django/core/cache/backends/db.py
vendored
2
django/core/cache/backends/db.py
vendored
@@ -167,7 +167,7 @@ class DatabaseCache(BaseDatabaseCache):
|
||||
cursor.execute("SELECT COUNT(*) FROM %s" % table)
|
||||
num = cursor.fetchone()[0]
|
||||
if num > self._max_entries:
|
||||
cull_num = num / self._cull_frequency
|
||||
cull_num = num // self._cull_frequency
|
||||
cursor.execute(
|
||||
connections[db].ops.cache_key_culling_sql() % table,
|
||||
[cull_num])
|
||||
|
||||
Reference in New Issue
Block a user