From eceb5e2eea554ea0f9baf7abc1b1972459854cef Mon Sep 17 00:00:00 2001 From: Sulabh Katila Date: Wed, 21 Feb 2024 19:51:58 -0500 Subject: Fixed #34806 -- Made cached_db session backend resilient to cache write errors. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> --- tests/cache/failing_cache.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/cache/failing_cache.py (limited to 'tests/cache') diff --git a/tests/cache/failing_cache.py b/tests/cache/failing_cache.py new file mode 100644 index 0000000000..e2f0043bb7 --- /dev/null +++ b/tests/cache/failing_cache.py @@ -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") -- cgit v1.3