Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#3562 closed defect (bug) (fixed)

Some cache adds should be sets

Reported by: andy's profile andy Owned by:
Milestone: 2.1 Priority: high
Severity: minor Version: 2.0
Component: General Keywords: has-patch commit
Focuses: 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 19 years ago.

Download all attachments as: .zip

Change History (3)

@andy
19 years ago

#1 @ryan
19 years ago

  • Milestone changed from 2.2 to 2.1

#2 @ryan
19 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.