summaryrefslogtreecommitdiff
path: root/kohana/libraries/drivers/Cache/Xcache.php
diff options
context:
space:
mode:
Diffstat (limited to 'kohana/libraries/drivers/Cache/Xcache.php')
-rw-r--r--kohana/libraries/drivers/Cache/Xcache.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/kohana/libraries/drivers/Cache/Xcache.php b/kohana/libraries/drivers/Cache/Xcache.php
index 5d027eec..8d31993a 100644
--- a/kohana/libraries/drivers/Cache/Xcache.php
+++ b/kohana/libraries/drivers/Cache/Xcache.php
@@ -25,9 +25,12 @@ class Cache_Xcache_Driver implements Cache_Driver {
return NULL;
}
- public function set($id, $data, $tags, $lifetime)
+ public function set($id, $data, array $tags = NULL, $lifetime)
{
- count($tags) and Kohana::log('error', 'Cache: tags are unsupported by the Xcache driver');
+ if ( ! empty($tags))
+ {
+ Kohana::log('error', 'Cache: tags are unsupported by the Xcache driver');
+ }
return xcache_set($id, $data, $lifetime);
}