addons/pkg-maven/common/src/main/java/org/commonjava/indy/pkg/maven/content/MetadataStoreListener.java
private void handleStoreDisableOrEnable(final ArtifactStore store,
                                            final Map<ArtifactStore, ArtifactStore> changeMap){
        logger.trace( "Processing en/disable event for: {}", store.getKey() );

        final ArtifactStore oldStore = changeMap.get( store );
        if ( store.isDisabled() != oldStore.isDisabled() )
        {
            logger.trace( "En/disable state changed for: {}", store.getKey() );
            removeMetadataCache( store );
        }
        else
        {
            logger.trace( "En/disable state has not changed for: {}", store.getKey() );
        }
    }
private void handleStoreDisableOrEnable(final ArtifactStore store,
                                            final Map<ArtifactStore, ArtifactStore> changeMap){
        logger.trace( "Processing en/disable event for: {}", store.getKey() );

        final ArtifactStore oldStore = changeMap.get( store );
        if ( store.isDisabled() != oldStore.isDisabled() )
        {
            logger.trace( "En/disable state changed for: {}", store.getKey() );
            removeMetadataCache( store );
        }
        else
        {
            logger.trace( "En/disable state has not changed for: {}", store.getKey() );
        }
    }
if a store is disabled/enabled, we should clear its metadata cache and all of its affected groups cache too.