Closed (fixed)
Project:
File Cache
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2013 at 06:15 UTC
Updated:
7 Nov 2016 at 15:44 UTC
Jump to comment: Most recent
When ctools_export sends an array of items to fetch to getmultiple, the items are keyed not by the items names, but by a standard 0-x number. Therefor, the following line will not work
unset($cids[$cid]);
The following patch, removes that line, and replaces it with
$cids = array_diff($cids, array_keys($results));
Which was copied from the APC module.
| Comment | File | Size | Author |
|---|---|---|---|
| ctools_export_getmultiple_fix.patch | 419 bytes | batje |
Comments
Comment #1
socialnicheguru commentedComment #2
socialnicheguru commentedI got this when I implemented this patch
PHP Fatal error: Declaration of DrupalFileCache::getMultiple() must be compatible with DrupalCacheInterface::getMultiple(&$cids) in sites/all/modulesfilecache/filecache.inc on line 66
Comment #5
ogi commentedFixed (hopefully).