*
* @return boolean hook success
*/
-
function onStartCacheGet(&$key, &$value)
{
$value = apc_fetch($key);
*
* @return boolean hook success
*/
-
function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success)
{
$success = apc_store($key, $value, ((is_null($expiry)) ? 0 : $expiry));
*
* @return boolean hook success
*/
-
function onStartCacheDelete(&$key, &$success)
{
$success = apc_delete($key);
'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:APC',
'rawdescription' =>
+ // TRANS: Plugin description.
_m('Use the <a href="http://pecl.php.net/package/apc">APC</a> variable cache to cache query results.'));
return true;
}