﻿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
26619	BaseCache incr method will reset the timeout	Esteban C Borsani	Simone Macri	"`BaseCache.incr()` resets the timeout to the default timeout. `DatabaseCache` and `FileBasedCache` are affected by this, since they do not override the method. I'm not sure what the memcache behaviour is.

To reproduce this, set the default cache backend to `django.core.cache.backends.db.DatabaseCache` and call `incr()` on the cache. Although, [https://github.com/django/django/blob/df8d8d4292684d6ffa7474f1e201aed486f02b53/django/core/cache/backends/base.py#L186 the bug is easy to spot] since `.set(...)` is being called without passing a timeout.

I'm assuming this is a bug since `LocMemCache` doesn't reset the timeout, the docs don't mention anything about it and it seems like a surprising behaviour to me.

Django 1.8 and 1.9 are affected by this."	Bug	assigned	Core (Cache system)	1.8	Normal		cache, incr, DatabaseCache, BaseCache		Accepted	1	0	0	1	0	0
