Browse Source

Allow an App to define its own LOGS and CACHE paths outside TMP

Nicholas de Jong 13 years ago
parent
commit
d4fa5d000c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/Cake/bootstrap.php

+ 4 - 0
lib/Cake/bootstrap.php

@@ -90,12 +90,16 @@ if (!defined('TMP')) {
 /**
  * Path to the logs directory.
  */
+if (!defined('LOGS')) {
 	define('LOGS', TMP . 'logs' . DS);
+}
 
 /**
  * Path to the cache files directory. It can be shared between hosts in a multi-server setup.
  */
+if (!defined('CACHE')) {
 	define('CACHE', TMP . 'cache' . DS);
+}
 
 /**
  * Path to the vendors directory.