note 107485 added to function.apc-add
| From: | jrim | Date: | Mon, 13 Feb 2012 02:10:15 +0000 |
| Subject: | note 107485 added to function.apc-add | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186093@lists.php.net to get a copy of this message | ||
Just so other users are aware, for the $ttl value (the third argument), you must supply the actual
integer you want, not a multiplication problem. For example, previously I used:
echo apc_add('124563812', true, 60*45);
which would return 1 that it successfully stored the key/value, however it does not actually store
the key/value. If you instead put the whole number:
echo apc_add('124563812', true, 2700);
You still receive a return value of 1 indicating that it stored successfully, but this time it
actually does store properly.
----
Server IP: 69.147.83.197
Probable Submitter: 66.87.114.44
----
Manual Page -- http://www.php.net/manual/en/function.apc-add.php
Edit -- https://master.php.net/note/edit/107485
Del: integrated -- https://master.php.net/note/delete/107485/integrated
Del: useless -- https://master.php.net/note/delete/107485/useless
Del: bad code -- https://master.php.net/note/delete/107485/bad+code
Del: spam -- https://master.php.net/note/delete/107485/spam
Del: non-english -- https://master.php.net/note/delete/107485/non-english
Del: in docs -- https://master.php.net/note/delete/107485/in+docs
Del: other reasons-- https://master.php.net/note/delete/107485
Reject -- https://master.php.net/note/reject/107485
Search -- https://master.php.net/manage/user-notes.php