note 107485 deleted from function.apc-add by tularis

From: Date: Mon, 13 Feb 2012 07:09:23 +0000
Subject: note 107485 deleted from function.apc-add by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-186096@lists.php.net to get a copy of this message
Note Submitter: jrim ---- 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.

« previous php.notes (#186096) next »