diff options
Diffstat (limited to 'kohana/libraries/drivers/Cache/Eaccelerator.php')
-rw-r--r-- | kohana/libraries/drivers/Cache/Eaccelerator.php | 29 |
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 |