function countries_clear_caches in Countries 8
Same name and namespace in other branches
- 7.2 countries.module \countries_clear_caches()
Helper function to clear various caches.
6 calls to countries_clear_caches()
- 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 - CountriesFunctionsUnitTest::testCountriesLookupListing in tests/
countries.test - This browes the admin listing, making sure that the countries are correctly listed.
- country_delete in ./
countries.module - Delete a countries object from the database.
File
- ./
countries.module, line 440 - Defines the field and entity information for countries.
Code
function countries_clear_caches() {
drupal_static_reset('countries_t');
drupal_static_reset('countries_get_countries');
drupal_static_reset('countries_get_continents');
drupal_static_reset('countries_countries_alter');
entity_get_controller('country')
->resetCache();
}