You are here

function countries_clear_caches in Countries 7.2

Same name and namespace in other branches
  1. 8 countries.module \countries_clear_caches()

Helper function to clear various caches.

7 calls to countries_clear_caches()
CountriesBaseImportUnitTest::testCountriesCoreListingImport in tests/countries.test
Tests the import routines.
CountriesCacheUnitTest::testCache in tests/countries.test
CountriesCRUDUIUnitTest::testCountriesAddition in tests/countries.test
This test that the country property lookup is working.
CountriesElementUnitTest::testFAPIElement in tests/countries.test
countries_admin_import_form_submit in ./countries.admin.inc
Submit handler.

... See full list

File

./countries.module, line 433
Defines the field and entity information for countries.

Code

function countries_clear_caches() {
  drupal_static('countries_get_countries', NULL, TRUE);
  drupal_static('countries_get_continents', NULL, TRUE);
  drupal_static('countries_countries_alter', NULL, TRUE);
  entity_get_controller('country')
    ->resetCache();
}