| @@ -133,15 +133,13 @@ | ||
| 133 | 133 | // Bump the generation salt: every keyed entry now hashes to a new key and |
| 134 | 134 | // is effectively retired (the orphans expire with their day TTL). |
| 135 | 135 | update_option( 'mlsimport_live_cache_version', mlsimport_live_cache_version() + 1 ); |
| 136 | 136 | |
| 137 | - // Fixed-name transients aren't keyed by the salt, so delete them by hand: | |
| 138 | - // the entitlement flag and price ceiling, plus each swapped provider token. | |
| 137 | + // Fixed-name shared transients aren't keyed by the salt, so delete them by | |
| 138 | + // hand. The Provider Family module owns the provider-token list. | |
| 139 | 139 | $fixed = array( 'mlsimport_live_entitlement_checked', 'mlsimport_live_price_ceiling' ); |
| 140 | - foreach ( array( 'trestle', 'realcomp', 'realtorca', 'rapattoni', 'brightmls' ) as $type ) { | |
| 141 | - $fixed[] = 'mlsimport_live_token_' . $type; | |
| 142 | - } | |
| 143 | 140 | // Delete each — this also evicts it from a persistent object cache. |
| 144 | 141 | foreach ( $fixed as $name ) { |
| 145 | 142 | delete_transient( $name ); |
| 146 | 143 | } |
| 144 | + Mlsimport_Provider_Family::clear_direct_access_tokens(); | |
| 147 | 145 | } |