﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30984	Cache culling.	Martin Ennemoser	nobody	"I have an endpoint that needs very long to create a response since the calculation of it takes very long. My approach was to cache the result in a file cache and return the cached result to the user. From time to time I asynchronously recalculate the result and update the cache. Since I don't want to let the cache expire, I set the expire argument to None. The first time, that worked well. But after a couple of hours, I found out that the cache files were deleted randomly. Looking into the code of the FileBasedCache class https://github.com/django/django/blob/master/django/core/cache/backends/filebased.py I noticed that there is a cull() method that randomly deletes my cache files. This is horrible since my users don't get the cached results anymore and have to wait very long until they get the calculated result.
Don't you consider this cull() method dangerous?"	Uncategorized	closed	Core (Cache system)	2.2	Normal	invalid			Unreviewed	0	0	0	0	0	0
