Fix cache invalidator feature flag
Part of #2288 (closed)
I realized I made the simple and stupid mistake of using a dash instead of an underscore. This change fixes that.
Additionally, to prevent future incidents, I added feature flag validation at package initialization to make sure underscores are used instead of dashes.