mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +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:
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")
|
||||
Reference in New Issue
Block a user