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
Comment | File | Size | Author |
---|---|---|---|
#3 | remove-incomplete-domain-integration-2952248-3.patch | 1.34 KB | krisahil |
Comments
Comment #2
krisahil CreditAttribution: krisahil commentedComment #3
krisahil CreditAttribution: krisahil commentedHere is a patch that removes the notice.
Comment #4
krisahil CreditAttribution: krisahil commentedComment #6
ccjjmartin CreditAttribution: ccjjmartin at Four Kitchens commented