public static function clearCaches($company_ids = null) { if (is_null($company_ids)) { if (Registry::get('runtime.company_id') || Registry::get('runtime.simple_ultimate')) { $company_ids = Registry::get('runtime.company_data.company_id'); } else { $company_ids = array_keys(fn_get_short_companies()); } } foreach ((array) $company_ids as $company_id) { $self = new self($company_id); $self->clearCache(); } }
/** * Clear the file caches for a page for all actions * @param Title $title * @return bool Whether $wgUseFileCache is enabled */ public static function clearFileCache(Title $title) { $config = MediaWikiServices::getInstance()->getMainConfig(); if (!$config->get('UseFileCache')) { return false; } foreach (self::cacheablePageActions() as $type) { $fc = new self($title, $type); $fc->clearCache(); } return true; }
public static function clearCaches($company_ids = null) { if (is_null($company_ids)) { if (Registry::get('runtime.company_id') || Registry::get('runtime.simple_ultimate')) { $company_ids = Registry::get('runtime.company_data.company_id'); } else { $company_ids = array_keys(fn_get_short_companies()); } } $price_id = db_get_field("SELECT DISTINCT param_id FROM ?:yml_param WHERE param_type = 'price_list'"); foreach ((array) $company_ids as $company_id) { $self = new self($company_id, $price_id); $self->clearCache(); } }
/** * Clear the file caches for a page for all actions * @param Title $title * @return bool Whether $wgUseFileCache is enabled */ public static function clearFileCache(Title $title) { global $wgUseFileCache; if (!$wgUseFileCache) { return false; } foreach (self::cacheablePageActions() as $type) { $fc = new self($title, $type); $fc->clearCache(); } return true; }