1
Turns out that when django-debug-toolbar is running it results in a fairly significant performance hit on cache requests.
Once debug toolbar was disabled the time difference went away.
0
You measured two different things. Execute the cache 100 times in debug view too.
Maybe the first call has some warmup and the other calls are faster.
Source:stackexchange.com