note 70822 added to function.apc-store

From: Date: Mon, 30 Oct 2006 12:09:43 +0000
Subject: note 70822 added to function.apc-store
Groups: php.notes 
Request: Send a blank email to php-notes+get-119244@lists.php.net to get a copy of this message
It should be noted that apc_store appears to only store one level deep. So if you have an array of arrays, and you store it. When you pull it back out with apc_fetch it will only have the top level row of keys with nulls as the values of each key. Solution to this, is to serialize the data before storing it in the cache and unserialize it while retrieving from the cache. ---- Server IP: 207.126.224.18 Probable Submitter: 10.80.40.44 ---- Manual Page -- http://www.php.net/manual/en/function.apc-store.php Edit -- https://master.php.net/note/edit/70822 Del: integrated -- https://master.php.net/note/delete/70822/integrated Del: useless -- https://master.php.net/note/delete/70822/useless Del: bad code -- https://master.php.net/note/delete/70822/bad+code Del: spam -- https://master.php.net/note/delete/70822/spam Del: non-english -- https://master.php.net/note/delete/70822/non-english Del: in docs -- https://master.php.net/note/delete/70822/in+docs Del: other reasons-- https://master.php.net/note/delete/70822 Reject -- https://master.php.net/note/reject/70822 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119244) next »