Description

If the user disconnect during the write process the cache contains not clompleted data.
This can shirk by set the ignore_user_abort to off and after writing to prior value again.

Comments

Posted by Gavin (gavin) on 2007-04-16T13:04:20.000+0000

I suggest considering adding this as an option to Zend_Cache.

Posted by Fabien MARTY (fab) on 2007-04-16T15:33:18.000+0000

IMHO, this is useless.

With the default configuration, the hash key won't be ok so the cache will be dropped.

So it's not really a problem if the cache contains not completed data because it won't be used (readControl feature)

Posted by Gavin (gavin) on 2007-04-16T16:03:52.000+0000

True, but in some situations, a failed cache write could be avoided using ingore_user_abort().

Posted by Fabien MARTY (fab) on 2007-04-16T16:33:01.000+0000

sure but is it enough to add a new option in Zend_Cache core ?

I prefer to keep the core away from "not really usefull" options because :
- the code is cleaner
- perfs are better

Posted by Gavin (gavin) on 2007-04-16T16:47:33.000+0000

I don't have any strong feelings on this, and won't object if you close the issue, because developers could call ignore_user_abort() themselves. However, I doubt adding the following would affect perfs in any meaningful way for those not enabling the proposed option: