If you set "Entity Connect cache lifetime" to "0" on /admin/config/content/entityconnect,
it seemingly gets stored as a string to the database.

drupal's constant "CACHE_PERMANENT" is an integer though, so comparison
if ($cache_lifetime !== CACHE_PERMANENT) {
in function entityconnect_cache_set() (in entityconnect.module, line 143) fails.

This results in forms not being cached, and several errors, eg redirecting to parent form after saving fails.
There might be some related issues to this...

Quick fix:
Change
if ($cache_lifetime !== CACHE_PERMANENT) {
to
if ($cache_lifetime != CACHE_PERMANENT) {
or store "entityconnect_cache_lifetime" as an integer in the db

Comments

esha created an issue. See original summary.

  • jygastaud committed c77f142 on 7.x-2.x
    Issue #2901454 by esha: Cache permanent isn't set correctly - breaks...
jygastaud’s picture

Status: Active » Fixed

Thanks for report that issue and fix proposed.

Status: Fixed » Closed (fixed)

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