/** * This handler is called right after a plugin was installed or updated. * It instructs the dashboard to flush all caches (i.e. filesystem is * scanned again, the transient is re-generated, ...) * * @since 4.0.7 */ public function after_local_files_changed() { self::$_cache_themeupdates = false; self::$_cache_pluginupdates = false; self::$_cache_filesystem = false; self::$_cache_projectinfos = false; $this->set_transient('local_projects', false); }
/** * This handler is called right before starting an upgrade/installation * process, it makes sure that the upgrader will get uncached and * up-to-date details. * * @since 4.1.0 */ public function clear_local_file_cache() { self::$_cache_projectinfos = false; $this->set_transient('local_projects', false); }