You are here

public static function PartyPrimaryFields::clearCaches in Party 7

Clears the field and source cache.

3 calls to PartyPrimaryFields::clearCaches()
PartyPrimaryFieldsTestCase::testPrimaryFieldsBasic in tests/party_primary_fields.test
Test the basics of primary fields.
party_entity_property_info_alter in ./party.info.inc
Implements hook_entity_property_info_alter().
party_primary_fields_clear_caches in ./party.admin.inc
Submission handler to clear primary field caches.

File

includes/party.primary_fields.inc, line 128
Primary field related functions and callbacks.

Class

PartyPrimaryFields
Helper class for primary fields.

Code

public static function clearCaches() {

  // Clear our cache.
  cache_clear_all('party:primary_fields:', 'cache', TRUE);

  // Reset our statics.
  self::$fields = NULL;
  self::$sources = NULL;
}