Opened 3 years ago

Closed 3 years ago

#19896 closed Bug (fixed)

Running `clear.cache()` using PostgreSQL does not remove rows

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

Description

If you use a PostgreSQL schema as your cache backend, then manually run cache.clear(), the rows still persist. This is due to the fact that the delete transaction is never committed.

Change History (3)

comment:1 Changed 3 years ago by jacob

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 3 years ago by Aymeric Augustin <aymeric.augustin@…>

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

In 44164c5c308da32a804dfb03ce0bffde2a6b4c56:

Fixed #19896 -- Committed after clearing cache in the database.

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