本文整理汇总了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');
}