Fixed #34806 -- Made cached_db session backend resilient to cache write errors.

Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
This commit is contained in:
Sulabh Katila 2024-02-21 19:51:58 -05:00 committed by GitHub
parent 6feaad9113
commit eceb5e2eea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 57 additions and 5 deletions

7
tests/cache/failing_cache.py vendored Normal file
View file

@ -0,0 +1,7 @@
from django.core.cache.backends.locmem import LocMemCache
class CacheClass(LocMemCache):
def set(self, *args, **kwargs):
raise Exception("Faked exception saving to cache")