[4798] Breaks the page permalinks on my test blog.
When you update the permalinks on option-permalinks the following happens:
- delete_option is called for 'page_uris'.
- update_option is called for 'page_uris'.
- This calls into get_option which marks the option as non-existent
- Then this calls add_option (as the option didn't exist) which adds the option to the db
- Then update_option returns.
Patch to fix attached
This means we have the option in the db (and cache) but we also have cached that the option doesn't exist.
get_option listens to the notoption cache above all else so we can no longer access the option!