Code

Opened 3 years ago

Closed 2 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.

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by aaugustin

  • Triage Stage changed from Unreviewed to Accepted

AFAICT this is an omission in r15005.

comment:2 Changed 2 years ago by gnosek

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

Exact same issue as #17286.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.