Ticket #3562 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Some cache adds should be sets

Reported by: andy Assigned to: 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

non-adds.diff (1.6 kB) - added by andy on 01/11/07 21:53:49.

Change History

01/11/07 21:53:49 changed by andy

  • attachment non-adds.diff added.

01/11/07 22:34:12 changed by ryan

  • milestone changed from 2.2 to 2.1.

01/11/07 22:34:23 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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