本文整理匯總了PHP中CacheManager::invalidate方法的典型用法代碼示例。如果您正苦於以下問題:PHP CacheManager::invalidate方法的具體用法?PHP CacheManager::invalidate怎麽用?PHP CacheManager::invalidate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CacheManager
的用法示例。
在下文中一共展示了CacheManager::invalidate方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: uninstall
public function uninstall()
{
$this->drop_tables();
ConfigManager::delete('web', 'config');
CacheManager::invalidate('module', 'web');
WebService::get_keywords_manager()->delete_module_relations();
}
示例2: invalidate
/**
* Invalidates the current extended_fields cached data.
*/
public static function invalidate()
{
CacheManager::invalidate('kernel', 'extended-fields');
}
示例3: delete
/**
* Delete an configuration in the database and the cache
* @param string $module_name Name of the module owning this entry
* @param string $entry_name The name of the entry if the module uses several entries
*/
public static function delete($module_name, $entry_name = '')
{
$name = self::compute_entry_name($module_name, $entry_name);
try {
PersistenceContext::get_querier()->delete(DB_TABLE_CONFIGS, 'WHERE name=:name', array('name' => $name));
} catch (MySQLQuerierException $e) {
}
CacheManager::invalidate($module_name, $entry_name);
}
示例4: invalidate
/**
* Invalidates the current Bugtracker stats cached data.
*/
public static function invalidate()
{
CacheManager::invalidate('bugtracker', 'stats');
}
示例5: invalidate
/**
* Invalidates the current administrator alert cached data.
*/
public static function invalidate()
{
CacheManager::invalidate('kernel', 'administrator-alert');
}
示例6: invalidate
/**
* Invalidates the current poll cached data.
*/
public static function invalidate()
{
CacheManager::invalidate('poll', 'minimenu');
}
示例7: invalidate
/**
* Invalidates the current modules css files cached data.
*/
public static function invalidate()
{
CacheManager::invalidate('kernel', 'unread-contributions');
}
示例8: invalidate
/**
* Invalidates the current Calendar month events cached data.
*/
public static function invalidate()
{
CacheManager::invalidate('calendar', 'currentmonthevents');
}
示例9: invalidate
/**
* Invalidates the current faq cached data.
*/
public static function invalidate()
{
CacheManager::invalidate('module', 'faq');
}
示例10: uninstall
public function uninstall()
{
$this->drop_tables();
ConfigManager::delete('faq', 'config');
CacheManager::invalidate('module', 'faq');
}
示例11: invalidate
/**
* Invalidates the current groups cached data.
*/
public static function invalidate()
{
CacheManager::invalidate('kernel', 'htaccess-file');
}
示例12: invalidate
/**
* Invalidates the current Guestbook messages cached data.
*/
public static function invalidate()
{
CacheManager::invalidate('guestbook', 'messages');
}
示例13: invalidate
/**
* Invalidates the current ranks cached data.
*/
public static function invalidate()
{
CacheManager::invalidate('forum', 'ranks');
}
示例14: invalidate
/**
* Invalidates the current menus cached data.
*/
public static function invalidate()
{
CacheManager::invalidate('kernel', 'menus');
}
示例15: invalidate
/**
* Invalidates the current download cached data.
*/
public static function invalidate()
{
CacheManager::invalidate('download', 'minimenu');
}