Changes between Initial Version and Version 1 of Ticket #33061


Ignore:
Timestamp:
Aug 26, 2021, 11:02:44 AM (3 years ago)
Author:
Chris Jerdonek
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33061 – Description

    initial v1  
    11I was looking at the code for some of the cache backends, and I noticed that in a couple places, it looks like `ValueError` isn't being raised when it should be. This is in the [https://github.com/django/django/blob/3445c50a3affc5ae7b1c2712a139d4a5105aeaf5/django/core/cache/backends/memcached.py#L111-L112 incr()] and [https://github.com/django/django/blob/3445c50a3affc5ae7b1c2712a139d4a5105aeaf5/django/core/cache/backends/memcached.py#L128-L129 decr()] methods of `BaseMemcachedCache` when `delta` is less than zero. The commit where this code was added is here: https://github.com/django/django/commit/79dd751b0b9e428bf386d7304f442fa9815fdbba
     2
     3This is just by looking at the code, so I could be wrong. But I wanted to flag it.
Back to Top