cache: fix error 500 with new django version

2 jobs for bugfix in 32 minutes and 23 seconds (queued for 3 seconds)