omusico / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Zend Cache support broken in 0.7.1 #636

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Enable the cache in the sample project with:

$cache = Zend_Cache::factory('Core', 'File', array('automatic_serialization' => 
true));
$grid->setCache(array('use' => array('db' => true), 'instance' => $cache, 'tag' 
=> 'my_tag'));

and browse the site.

What is the expected output? What do you see instead?

The cache seems to work, I've dumped its content and looked into generated 
files, but I obtain notices and warning, I'm attaching the full (xdebug) stack 
trace of errors

I tried this code with both File and Apc backends, and with Table and JqGrid 
grids and the result is the same.

Please notice also that apc backend doesn't support tags, so you should make 
tag usage optional, from your code in Bvb_Grid::setCache it seems to be a 
mandatory param.

Original issue reported on code.google.com by f.napole...@gmail.com on 7 Apr 2011 at 2:52

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by bento.vi...@gmail.com on 15 Apr 2011 at 4:34

GoogleCodeExporter commented 9 years ago
Hi,

What version of ZFDatagrid do you use?

Best Regards,
Bento Vilas Boas

Original comment by bento.vi...@gmail.com on 15 Apr 2011 at 10:13

GoogleCodeExporter commented 9 years ago
I'm using 0.7.1

Original comment by f.napole...@gmail.com on 15 Apr 2011 at 10:31