Opened 6 years ago

Closed 6 years ago

#3562 closed defect (bug) (fixed)

Some cache adds should be sets

Reported by: andy Owned by: anonymous
Priority: high Milestone: 2.1
Component: General Version: 2.0
Severity: minor Keywords: has-patch commit
Cc:

Description

When the data is fresh from the db or another authoritative source, the cache operation should be SET, not ADD.

With ADD you run the risk of innacurate data taking precedence. This has caused nasty issues with plugins on wordpress.com.

Patch attached.

Attachments (1)

non-adds.diff (1.6 KB) - added by andy 6 years ago.

Download all attachments as: .zip

Change History (3)

andy6 years ago

comment:1   ryan6 years ago

  • Milestone changed from 2.2 to 2.1

comment:2   ryan6 years ago

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

(In [4722]) Use cache sets instead of adds. Props andy. fixes #3562

Note: See TracTickets for help on using tickets.