Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated the docs to reflect supported cache engines in 3.2

Code style changes to the File driver
  • Loading branch information...
commit e10837ba044c387d821e52a1edc6c74b16608ccc 1 parent 4865818
@samsoir samsoir authored
View
2  classes/kohana/cache/file.php
@@ -151,7 +151,7 @@ public function get($id, $default = NULL)
throw new Cache_Exception(__METHOD__.' corrupted cache file!');
}
- $cache = $data->fgets();
+ $cache = $data->fgets();
// Test the expiry
if (($created + (int) $lifetime) < time())
View
24 guide/cache/config.md
@@ -102,21 +102,6 @@ failure_callback | __NO__ | (_[callback](http://www.php.net/manual/en/language
tags VARCHAR(255), expiration INTEGER, cache TEXT)',
),
-## Eaccelerator settings
-
- 'eaccelerator' array
- (
- 'driver' => 'eaccelerator',
- ),
-
-## Xcache settings
-
- 'xcache' => array
- (
- 'driver' => 'xcache',
- 'default_expire' => 3600,
- ),
-
## File settings
'file' => array
@@ -126,6 +111,15 @@ failure_callback | __NO__ | (_[callback](http://www.php.net/manual/en/language
'default_expire' => 3600,
)
+## Wincache settings
+
+ 'wincache' => array
+ (
+ 'driver' => 'wincache',
+ 'default_expire' => 3600,
+ ),
+
+
## Override existing configuration group
The following example demonstrates how to override an existing configuration setting, using the config file in `/application/config/cache.php`.
View
10 guide/cache/index.md
@@ -7,12 +7,11 @@ instances of cache engines through a grouped singleton pattern.
## Supported cache engines
* APC ([Cache_Apc])
- * eAccelerator ([Cache_Eaccelerator])
* File ([Cache_File])
* Memcached ([Cache_Memcache])
* Memcached-tags ([Cache_Memcachetag])
* SQLite ([Cache_Sqlite])
- * Xcache ([Cache_Xcache])
+ * Wincache
## Introduction to caching
@@ -45,13 +44,12 @@ Getting and setting values to cache is very simple when using the _Kohana Cache_
Driver | Storage | Speed | Tags | Distributed | Automatic Garbage Collection | Notes
---------------- | ------------ | --------- | -------- | ----------- | ---------------------------- | -----------------------
APC | __Memory__ | Excellent | No | No | Yes | Widely available PHP opcode caching solution, improves php execution performance
-eAccelerator | __Memory__ | Excellent | No | No | Yes | Limited support and no longer developed. Included for legacy systems
+Wincache | __Memory__ | Excellent | No | No | Yes | Windows variant of APC
File | __Disk__ | Poor | No | No | No | Marginally faster than execution
-Memcache (tag) | __Memory__ | Good | No (yes) | Yes | Yes | Generally fast distributed solution, but has a speed hit due to variable network latency
+Memcache (tag) | __Memory__ | Good | No (yes) | Yes | Yes | Generally fast distributed solution, but has a speed hit due to variable network latency and serialization
Sqlite | __Disk__ | Poor | Yes | No | No | Marginally faster than execution
-Xcache | __Memory__ | Excellent | Yes | No | Yes | Very fast memory solution and alternative to APC
-It is possible to have hybrid cache solutions that use a combination of the engines above in different contexts. This is supported with _Kohana Cache_ as well.
+It is possible to have hybrid cache solutions that use a combination of the engines above in different contexts. This is supported with _Kohana Cache_ as well
## Minimum requirements
Please sign in to comment.
Something went wrong with that request. Please try again.