If you use Entity Cache and Drupal caches get flushed before the module, that contains an entity, is completely enabled; you get errors like this:

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dbname.cache_entity_field_collection_item' doesn't exist

I feel the only responsibility for the Entity API module is to flush the cache tables it created itself, instead of all possible cache tables from all entities that support Entity Cache.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

PieterDC’s picture

Assigned: PieterDC » Unassigned
Status: Active » Needs review
FileSize
754 bytes

Patch attached. Needs review.

iSoLate’s picture

Status: Needs review » Reviewed & tested by the community

Haven't had the exception since using this patch.

Christopher Riley’s picture

Can we get this committed please?

  • fago committed c6b3a2e on 7.x-1.x authored by PieterDC
    Issue #2455361 by PieterDC: Don't flush Entity Cache tables that aren't...
fago’s picture

Status: Reviewed & tested by the community » Fixed

thx, committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.