/** * Clear API cache. * * @author Vova Feldman (@svovaf) * @since 1.0.9 */ static function clear_cache() { self::$_cache = FS_Option_Manager::get_manager(WP_FS__API_CACHE_OPTION_NAME, true); self::$_cache->clear(true); }
/** * Get plugin public API scope. * * @author Vova Feldman (@svovaf) * @since 1.0.7 * * @return FS_Api */ function get_api_plugin_scope() { if (!isset($this->_plugin_api)) { $this->_plugin_api = FS_Api::instance($this->_slug, 'plugin', $this->_plugin->id, $this->_plugin->public_key, !$this->is_live()); } return $this->_plugin_api; }
/** * Clear API cache. * * @author Vova Feldman (@svovaf) * @since 1.0.9 */ static function clear_cache() { self::_init(); self::$_cache = FS_Cache_Manager::get_manager(WP_FS__API_CACHE_OPTION_NAME); self::$_cache->clear(); }