check_file_based_cache_is_absolute doesn't close caches

20 views
Skip to first unread message

Nikita Manovich

unread,
Jan 19, 2023, 7:13:04 PM1/19/23
to Django users
Hi,

Why check_file_based_cache_is_absolute doesn't close cache? Does Django have any reasons for that?

I expect that in https://github.com/django/django/blob/4b066bde692078b194709d517b27e55defae787c/django/core/checks/caches.py#L62 function each cache will be closed before continue statement.

For example, DjangoCache initializes SQLite DB. Our project has multiple RQ workers. Each of them keeps the DB open till its death.

--
  Nikita
Reply all
Reply to author
Forward
0 new messages