function unavailablePlugin($plugin)
 {
     $this->plugin_factory->unavailablePlugin($plugin);
     $plugin->setAvailable(false);
     $this->site_cache->invalidatePluginBasedCaches();
 }