Problem/Motivation

When updating a node triggers cache_invalidate module to invalidate a cached item, I get this PHP notice:

Notice: Undefined offset: 2 in _cache_invalidate_process_node() (line 118 of [docroot]/sites/all/modules/cache_invalidate/cache_invalidate.module).
 

Proposed resolution

Remove integration with domain module. Module domain_views does provide a time-based Views cache plugin (domain_views_plugin_cache_time), but the cache key built by that plugin does not allow one to flush Views' output that matches a certain domain ID. The domain ID (along with other metadata) is hashed into a string, and that string is appended to the cache key. Unless cache_invalidate has all this metadata, I don't see how it can re-build the cache key in order to invalidate its cache item.

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

krisahil created an issue. See original summary.

krisahil’s picture

Issue summary: View changes
krisahil’s picture

Here is a patch that removes the notice.

krisahil’s picture

Assigned: Unassigned » krisahil
Status: Active » Needs review

ccjjmartin’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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