WP creates duplicate options
|Reported by:||Denis-de-Bernardy||Owned by:||anonymous|
While testing upgrade scripts for very old sites, I've noticed occasional duplicates in the option table. Which ones are quite random from a site to the next -- but they include things like upgrade_core, and so on, i.e. it's definitely not plugin related. I take it that these are created during race conditions, where two separate users browse the site, and the options created twice.
Anyway, these could have been avoided in the first place had WP been enforcing a unique index on option_name. And it's probably worth getting rid of them in the wp upgrade scripts at some point if we enforce such an index.
Change History (25)
- Milestone changed from Future Release to 2.9
- Resolution set to fixed
- Status changed from new to closed