Opened 4 years ago

Closed 3 years ago

#16489 closed Bug (duplicate)

cache.close connection to request_finished needs to apply to all caches

Reported by: jdunck Owned by: nobody
Component: Core (Cache system) Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

There is support for closing cache (if it has a .close callable), as seen here:
https://code.djangoproject.com/browser/django/trunk/django/core/cache/__init__.py?rev=16549#L181

The trouble is that the request_finished connection is made only for the default .cache attribute. This should be done for each cache backend, not just DEFAULT_CACHE_ALIAS.

Change History (2)

comment:1 Changed 4 years ago by aaugustin

  • Triage Stage changed from Unreviewed to Accepted

AFAICT this is an omission in r15005.

comment:2 Changed 3 years ago by gnosek

  • Resolution set to duplicate
  • Status changed from new to closed

Exact same issue as #17286.

Note: See TracTickets for help on using tickets.
Back to Top