cache.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php defined('SYSPATH') or die('No direct script access.');
  2. return array
  3. (
  4. /* 'memcache' => array(
  5. 'driver' => 'memcache',
  6. 'default_expire' => 3600,
  7. 'compression' => FALSE, // Use Zlib compression (can cause issues with integers)
  8. 'servers' => array(
  9. 'local' => array(
  10. 'host' => 'localhost', // Memcache Server
  11. 'port' => 11211, // Memcache port number
  12. 'persistent' => FALSE, // Persistent connection
  13. 'weight' => 1,
  14. 'timeout' => 1,
  15. 'retry_interval' => 15,
  16. 'status' => TRUE,
  17. ),
  18. ),
  19. 'instant_death' => TRUE, // Take server offline immediately on first fail (no retry)
  20. ),
  21. 'memcachetag' => array(
  22. 'driver' => 'memcachetag',
  23. 'default_expire' => 3600,
  24. 'compression' => FALSE, // Use Zlib compression (can cause issues with integers)
  25. 'servers' => array(
  26. 'local' => array(
  27. 'host' => 'localhost', // Memcache Server
  28. 'port' => 11211, // Memcache port number
  29. 'persistent' => FALSE, // Persistent connection
  30. 'weight' => 1,
  31. 'timeout' => 1,
  32. 'retry_interval' => 15,
  33. 'status' => TRUE,
  34. ),
  35. ),
  36. 'instant_death' => TRUE,
  37. ),
  38. 'apc' => array(
  39. 'driver' => 'apc',
  40. 'default_expire' => 3600,
  41. ),
  42. 'wincache' => array(
  43. 'driver' => 'wincache',
  44. 'default_expire' => 3600,
  45. ),
  46. 'sqlite' => array(
  47. 'driver' => 'sqlite',
  48. 'default_expire' => 3600,
  49. 'database' => APPPATH.'cache/kohana-cache.sql3',
  50. 'schema' => 'CREATE TABLE caches(id VARCHAR(127) PRIMARY KEY, tags VARCHAR(255), expiration INTEGER, cache TEXT)',
  51. ),
  52. 'eaccelerator' => array(
  53. 'driver' => 'eaccelerator',
  54. ),
  55. 'xcache' => array(
  56. 'driver' => 'xcache',
  57. 'default_expire' => 3600,
  58. ),
  59. 'file' => array(
  60. 'driver' => 'file',
  61. 'cache_dir' => APPPATH.'cache',
  62. 'default_expire' => 3600,
  63. 'ignore_on_delete' => array(
  64. '.gitignore',
  65. '.git',
  66. '.svn'
  67. )
  68. )
  69. */
  70. );