How to Conditionally Disable Object Cache Drop-in

How to Conditionally Disable Object Cache Drop-in

A site has one primary domain name and several secondary names. It also uses an object cache drop-in. Site administrators use only the primary domain for posting. All the administrative operations trigger cache updates only for the primary domain; the mirrors on the secondary domains show stale data. Site owners somehow needed to disable the object cache for all domains except the primary one.

This post shows a way to selectively disable the object cache drop-in.