Closed (fixed)
Project:
Cache Router
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2008 at 04:24 UTC
Updated:
12 Sep 2008 at 19:52 UTC
cache_set() in core allows for the caching of empty or false results. Presently this functionality is only implemented in the db engine - in each of the other engines this has been guarded against through a !empty($value) condition.
This patch brings the functionality of each of the other engines into line with the expected behaviour of drupal's cache_set() method.
I've tested this with the memcache engine only.
Patch made against HEAD.
The patch was developed by IDG Australia.
| Comment | File | Size | Author |
|---|---|---|---|
| cacherouter.emptyvalue2.patch | 2.38 KB | triclops |
Comments
Comment #1
andypostOn my site I cache parts of block information not every time this pieces are hold data. So I need to store and retrive emtpy strings and arrays with no elements.
This is important because array() and string='' sometimes means something!
Comment #2
slantview commentedFixed in latest cvs commit.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.