summaryrefslogtreecommitdiff
path: root/kohana/libraries/drivers/Cache/Eaccelerator.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-17 18:56:01 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-17 18:56:01 +0000
commit208fc9db683c51e3bcf1f24d1e5e0200e0f32d96 (patch)
tree68ef623d8c6e13cc15fc2fe6dbe13a32585b9fa6 /kohana/libraries/drivers/Cache/Eaccelerator.php
parent3f87c16223d7aca44f432efe99b35ab7afb0dbe4 (diff)
Update Kohana to r4081.
This resolves ticket http://dev.kohanaphp.com/ticket/1156 1156: "Table prefix gets append to column name" All tests pass.
Diffstat (limited to 'kohana/libraries/drivers/Cache/Eaccelerator.php')
-rw-r--r--kohana/libraries/drivers/Cache/Eaccelerator.php29
1 files changed, 21 insertions, 8 deletions
diff --git a/kohana/libraries/drivers/Cache/Eaccelerator.php b/kohana/libraries/drivers/Cache/Eaccelerator.php
index 8fd32471..0710d483 100644
--- a/kohana/libraries/drivers/Cache/Eaccelerator.php
+++ b/kohana/libraries/drivers/Cache/Eaccelerator.php
@@ -24,30 +24,43 @@ class Cache_Eaccelerator_Driver implements Cache_Driver {
public function find($tag)
{
- return FALSE;
+ Kohana::log('error', 'tags are unsupported by the eAccelerator driver');
+
+ return array();
}
- public function set($id, $data, $tags, $lifetime)
+ public function set($id, $data, array $tags = NULL, $lifetime)
{
- count($tags) and Kohana::log('error', 'tags are unsupported by the eAccelerator driver');
+ if ( ! empty($tags))
+ {
+ Kohana::log('error', 'tags are unsupported by the eAccelerator driver');
+ }
return eaccelerator_put($id, $data, $lifetime);
}
public function delete($id, $tag = FALSE)
{
- if ($id === TRUE)
+ if ($tag === TRUE)
+ {
+ Kohana::log('error', 'tags are unsupported by the eAccelerator driver');
+ return FALSE;
+ }
+ elseif ($id === TRUE)
+ {
return eaccelerator_clean();
-
- if ($tag == FALSE)
+ }
+ else
+ {
return eaccelerator_rm($id);
-
- return TRUE;
+ }
}
public function delete_expired()
{
eaccelerator_gc();
+
+ return TRUE;
}
} // End Cache eAccelerator Driver \ No newline at end of file