--
Ticket URL: <https://code.djangoproject.com/ticket/26460>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Old description:
> BaseCache.validate_key() will call `warnings.warn()`
> [https://github.com/django/django/blob/15a20dc9aff1bd8a055ee7c322631b3ca4d1c474/django/core/cache/backends/base.py#L240-L244
> for each invalid character in the key]. This is not a big issue since
> only one warning will appear but it is unnecessary.
New description:
BaseCache.validate_key() will call `warnings.warn()`
[https://github.com/django/django/blob/15a20dc9aff1bd8a055ee7c322631b3ca4d1c474/django/core/cache/backends/base.py#L240-L244
for each invalid character in the key]. This is not a big issue since only
one warning will appear but it is unnecessary.
Fixed in https://github.com/django/django/pull/6414
--
--
Ticket URL: <https://code.djangoproject.com/ticket/26460#comment:1>
* type: Uncategorized => Cleanup/optimization
* version: 1.9 => master
* component: Uncategorized => Core (Cache system)
* stage: Unreviewed => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/26460#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"d356bb653f4d90ae9809e5a051791ded39010c38" d356bb6]:
{{{
#!CommitTicketReference repository=""
revision="d356bb653f4d90ae9809e5a051791ded39010c38"
Fixed #26460 -- Issued a single warning for invalid cache key
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26460#comment:3>