public function i18n_string_textgroup_cached::cache_reset in Internationalization 7
Reset cache, needed for tests.
Takes care of the persistent caches.
Overrides i18n_string_textgroup_default::cache_reset
File
- i18n_string/
i18n_string.inc, line 1439 - API for internationalization strings
Class
- i18n_string_textgroup_cached
- Textgroup handler for i18n_string API which integrated persistent caching.
Code
public function cache_reset() {
// Reset the persistent caches.
cache_clear_all('i18n:string:tgroup:' . $this->textgroup, 'cache', TRUE);
// Reset the complete string object cache too. This will affect string
// objects of other textgroups as well.
cache_clear_all('i18n:string:obj:', 'cache', TRUE);
return parent::cache_reset();
}