Make WordPress Core

Opened 20 years ago

Closed 20 years ago

#3562 closed defect (bug) (fixed)

Some cache adds should be sets

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

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 20 years ago.

Download all attachments as: .zip

Change History (3)

#1 @ryan
20 years ago

  • Milestone 2.2 → 2.1

#2 @ryan
20 years ago

  • Resolution → fixed
  • Status new → closed

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

Note: See TracTickets for help on using tickets.