You are here

public function i18n_string_textgroup_default::cache_reset in Internationalization 7

Reset cache, needed for tests

1 call to i18n_string_textgroup_default::cache_reset()
i18n_string_textgroup_cached::cache_reset in i18n_string/i18n_string.inc
Reset cache, needed for tests.
1 method overrides i18n_string_textgroup_default::cache_reset()
i18n_string_textgroup_cached::cache_reset in i18n_string/i18n_string.inc
Reset cache, needed for tests.

File

i18n_string/i18n_string.inc, line 618
API for internationalization strings

Class

i18n_string_textgroup_default
Textgroup handler for i18n_string API

Code

public function cache_reset() {
  $this->strings = array();
  $this->string_format = array();

  // Reset the persistent caches.
  cache_clear_all('i18n:string:tgroup:' . $this->textgroup, 'cache', TRUE);

  // Reset the complete string object cache too.
  cache_clear_all('i18n:string:obj:', 'cache', TRUE);
}