summaryrefslogtreecommitdiff
path: root/modules/rdf
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-26 05:54:48 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-26 05:54:48 +0000
commitd3de3672f18c86f060bc559da3c5bd4f14833071 (patch)
treebf4419f2370d691e723a1d4f60cc9298ced2be40 /modules/rdf
parent37339758d1611af9783888c1f837d1c628b3bab1 (diff)
downloadbrdo-d3de3672f18c86f060bc559da3c5bd4f14833071.tar.gz
brdo-d3de3672f18c86f060bc559da3c5bd4f14833071.tar.bz2
#642612 by yched: Add clean way to reset entity_info() cache.
Diffstat (limited to 'modules/rdf')
-rw-r--r--modules/rdf/rdf.module6
-rw-r--r--modules/rdf/rdf.test3
2 files changed, 3 insertions, 6 deletions
diff --git a/modules/rdf/rdf.module b/modules/rdf/rdf.module
index 7425feeb2..1ca95f6b6 100644
--- a/modules/rdf/rdf.module
+++ b/modules/rdf/rdf.module
@@ -163,8 +163,7 @@ function rdf_mapping_save(&$mapping) {
))
->execute();
- cache_clear_all('entity_info', 'cache');
- drupal_static_reset('entity_get_info');
+ entity_info_cache_clear();
return $status;
}
@@ -258,8 +257,7 @@ function rdf_rdfa_attributes($mapping, $data = NULL) {
function rdf_modules_installed($modules) {
// We need to clear the caches of entity_info as this is not done right
// during the tests. see http://drupal.org/node/594234
- cache_clear_all('entity_info', 'cache');
- drupal_static_reset('entity_get_info');
+ entity_info_cache_clear();
foreach ($modules as $module) {
$function = $module . '_rdf_mapping';
diff --git a/modules/rdf/rdf.test b/modules/rdf/rdf.test
index 3055a4cd5..242f42399 100644
--- a/modules/rdf/rdf.test
+++ b/modules/rdf/rdf.test
@@ -138,8 +138,7 @@ class RdfMappingDefinitionTestCase extends DrupalWebTestCase {
rdf_modules_installed(array('rdf_test', 'node'));
// entity_info caches must be cleared during testing. This is done
// automatically during the manual installation.
- cache_clear_all('entity_info', 'cache');
- drupal_static_reset('entity_get_info');
+ entity_info_cache_clear();
}
/**