PageRenderTime 49ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/app/config/core.production.php

https://github.com/hardsshah/bookmarks
PHP | 168 lines | 11 code | 2 blank | 155 comment | 0 complexity | ffbc867ff03e05bb55a187d64b6a1b72 MD5 | raw file
  1. <?php
  2. /**
  3. * CakePHP Debug Level:
  4. *
  5. * Production Mode:
  6. * 0: No error messages, errors, or warnings shown. Flash messages redirect.
  7. *
  8. * Development Mode:
  9. * 1: Errors and warnings shown, model caches refreshed, flash messages halted.
  10. * 2: As in 1, but also with full debug messages and SQL output.
  11. * 3: As in 2, but also with full controller dump.
  12. *
  13. * In production mode, flash messages redirect after a time interval.
  14. * In development mode, you need to click the flash message to continue.
  15. */
  16. Configure::write('debug', 0);
  17. /**
  18. * Turn off all caching application-wide.
  19. *
  20. */
  21. //Configure::write('Cache.disable', true);
  22. /**
  23. * Enable cache checking.
  24. *
  25. * If set to true, for view caching you must still use the controller
  26. * var $cacheAction inside your controllers to define caching settings.
  27. * You can either set it controller-wide by setting var $cacheAction = true,
  28. * or in each action using $this->cacheAction = true.
  29. *
  30. */
  31. //Configure::write('Cache.check', true);
  32. /**
  33. * Defines the default error type when using the log() function. Used for
  34. * differentiating error logging and debugging. Currently PHP supports LOG_DEBUG.
  35. */
  36. define('LOG_ERROR', 2);
  37. /**
  38. * The preferred session handling method. Valid values:
  39. *
  40. * 'php' Uses settings defined in your php.ini.
  41. * 'cake' Saves session files in CakePHP's /tmp directory.
  42. * 'database' Uses CakePHP's database sessions.
  43. *
  44. * To define a custom session handler, save it at /app/config/<name>.php.
  45. * Set the value of 'Session.save' to <name> to utilize it in CakePHP.
  46. *
  47. * To use database sessions, execute the SQL file found at /app/config/sql/sessions.sql.
  48. *
  49. */
  50. Configure::write('Session.save', 'php');
  51. /**
  52. * The name of the table used to store CakePHP database sessions.
  53. *
  54. * 'Session.save' must be set to 'database' in order to utilize this constant.
  55. *
  56. * The table name set here should *not* include any table prefix defined elsewhere.
  57. */
  58. //Configure::write('Session.table', 'cake_sessions');
  59. /**
  60. * The DATABASE_CONFIG::$var to use for database session handling.
  61. *
  62. * 'Session.save' must be set to 'database' in order to utilize this constant.
  63. */
  64. //Configure::write('Session.database', 'default');
  65. /**
  66. * Session time out time (in seconds).
  67. * Actual value depends on 'Security.level' setting.
  68. */
  69. Configure::write('Session.timeout', '120');
  70. /**
  71. * If set to false, sessions are not automatically started.
  72. */
  73. Configure::write('Session.start', true);
  74. /**
  75. * When set to false, HTTP_USER_AGENT will not be checked
  76. * in the session
  77. */
  78. Configure::write('Session.checkAgent', true);
  79. /**
  80. * The level of CakePHP security. The session timeout time defined
  81. * in 'Session.timeout' is multiplied according to the settings here.
  82. * Valid values:
  83. *
  84. * 'high' Session timeout in 'Session.timeout' x 10
  85. * 'medium' Session timeout in 'Session.timeout' x 100
  86. * 'low' Session timeout in 'Session.timeout' x 300
  87. *
  88. * CakePHP session IDs are also regenerated between requests if
  89. * 'Security.level' is set to 'high'.
  90. */
  91. Configure::write('Security.level', 'high');
  92. /**
  93. * Compress CSS output by removing comments, whitespace, repeating tags, etc.
  94. * This requires a/var/cache directory to be writable by the web server for caching.
  95. * and /vendors/csspp/csspp.php
  96. *
  97. * To use, prefix the CSS link URL with '/ccss/' instead of '/css/' or use HtmlHelper::css().
  98. */
  99. //Configure::write('Asset.filter.css', 'css.php');
  100. /**
  101. * Plug in your own custom JavaScript compressor by dropping a script in your webroot to handle the
  102. * output, and setting the config below to the name of the script.
  103. *
  104. * To use, prefix your JavaScript link URLs with '/cjs/' instead of '/js/' or use JavaScriptHelper::link().
  105. */
  106. //Configure::write('Asset.filter.js', 'custom_javascript_output_filter.php');
  107. /**
  108. * The classname and database used in CakePHP's
  109. * access control lists.
  110. */
  111. Configure::write('Acl.classname', 'DbAcl');
  112. Configure::write('Acl.database', 'default');
  113. /**
  114. *
  115. * Cache Engine Configuration
  116. * Default settings provided below
  117. *
  118. * File storage engine.
  119. *
  120. * Cache::config('default', array(
  121. * 'engine' => 'File', //[required]
  122. * 'duration'=> 3600, //[optional]
  123. * 'probability'=> 100, //[optional]
  124. * 'path' => CACHE, //[optional] use system tmp directory - remember to use absolute path
  125. * 'prefix' => 'cake_', //[optional] prefix every cache file with this string
  126. * 'lock' => false, //[optional] use file locking
  127. * 'serialize' => true, [optional]
  128. * ));
  129. *
  130. *
  131. * APC (http://pecl.php.net/package/APC)
  132. *
  133. * Cache::config('default', array(
  134. * 'engine' => 'Apc', //[required]
  135. * 'duration'=> 3600, //[optional]
  136. * 'probability'=> 100, //[optional]
  137. * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
  138. * ));
  139. *
  140. * Xcache (http://xcache.lighttpd.net/)
  141. *
  142. * Cache::config('default', array(
  143. * 'engine' => 'Xcache', //[required]
  144. * 'duration'=> 3600, //[optional]
  145. * 'probability'=> 100, //[optional]
  146. * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
  147. * 'user' => 'user', //user from xcache.admin.user settings
  148. * 'password' => 'password', //plaintext password (xcache.admin.pass)
  149. * ));
  150. *
  151. *
  152. * Memcache (http://www.danga.com/memcached/)
  153. *
  154. * Cache::config('default', array(
  155. * 'engine' => 'Memcache', //[required]
  156. * 'duration'=> 3600, //[optional]
  157. * 'probability'=> 100, //[optional]
  158. * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
  159. * 'servers' => array(
  160. * '127.0.0.1:11211' // localhost, default port 11211
  161. * ), //[optional]
  162. * 'compress' => false, // [optional] compress data in Memcache (slower, but uses less memory)
  163. * ));
  164. *
  165. */
  166. Cache::config('default', array('engine' => 'File'));