mirror of
https://github.com/django/django.git
synced 2025-11-25 13:13:28 +00:00
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:
parent
6feaad9113
commit
eceb5e2eea
6 changed files with 57 additions and 5 deletions
7
tests/cache/failing_cache.py
vendored
Normal file
7
tests/cache/failing_cache.py
vendored
Normal 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue