cameronterry / dark-matter

A highly opinionated domain mapping plugin for WordPress Networks
Other
12 stars 2 forks source link

Primary domain set / unset not updating domain cache #93

Closed cameronterry closed 2 years ago

cameronterry commented 2 years ago

The set() and unset() methods in DarkMatter_Primary update the database record for a domain but does not update the update or invalidate the caches used by DarkMatter_Domains, causing a discrepancy in the cache records.

Discovered whilst adding the unit tests, which works with multisite through the switch_to_blog() / restore_current_blog() mechanism: https://github.com/cameronterry/dark-matter/pull/88.