* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-
class XCachePlugin extends Plugin
{
/**
*
* @return boolean hook success
*/
-
function onStartCacheGet(&$key, &$value)
{
if (!xcache_isset($key)) {
*
* @return boolean hook success
*/
-
function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success)
{
$success = xcache_set($key, serialize($value));
*
* @return boolean hook success
*/
-
function onStartCacheDelete(&$key, &$success)
{
$success = xcache_unset($key);
return false;
}
- function onPluginVersion(&$versions)
+ function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'XCache',
- 'version' => STATUSNET_VERSION,
+ 'version' => GNUSOCIAL_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'http://status.net/wiki/Plugin:XCache',
'rawdescription' =>
+ // TRANS: Plugin description.
_m('Use the <a href="http://xcache.lighttpd.net/">XCache</a> variable cache to cache query results.'));
return true;
}
}
-