Index: entitycache.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/entitycache/entitycache.module,v
retrieving revision 1.41
diff -u -p -r1.41 entitycache.module
--- entitycache.module	26 Jan 2011 04:38:39 -0000	1.41
+++ entitycache.module	4 Feb 2011 02:47:06 -0000
@@ -22,7 +22,16 @@ function entitycache_entity_info_alter(&
  */
 class EntityCacheBaseController extends DrupalDefaultEntityController {
 
-    public function load($ids = array(), $conditions = array()) {
+  public function resetCache(array $ids = NULL) {
+    parent::resetCache($ids);
+    // Also reset the persistent cache.
+    if (isset($ids)) {
+      file_put_contents('/tmp/hello.txt', 'yarrr', FILE_APPEND);
+      cache_clear_all($ids, 'cache_entity_' . $this->entityType);
+    }
+  }
+
+  public function load($ids = array(), $conditions = array()) {
     $entities = array();
     $cached_entities = array();
     $queried_entities = array();
