File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed
Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,21 @@ class Cache extends BaseConfig
8282 */
8383 public $ prefix = '' ;
8484
85+ /**
86+ * --------------------------------------------------------------------------
87+ * Default TTL
88+ * --------------------------------------------------------------------------
89+ *
90+ * The default number of seconds to save items when none is specified.
91+ *
92+ * WARNING: This is not used by framework handlers where 60 seconds is
93+ * hard-coded, but may be useful to projects and modules. This will replace
94+ * the hard-coded value in a future release.
95+ *
96+ * @var integer
97+ */
98+ public $ ttl = 60 ;
99+
85100 /**
86101 * --------------------------------------------------------------------------
87102 * File settings
Original file line number Diff line number Diff line change 1717
1818// Load our paths config file
1919// This is the line that might need to be changed, depending on your folder structure.
20- require realpath ( FCPATH . ' ../app/Config/Paths.php ' ) ?: FCPATH . '../app/Config/Paths.php ' ;
20+ $ pathsConfig = FCPATH . '../app/Config/Paths.php ' ;
2121// ^^^ Change this if you move your application folder
22+ require realpath ($ pathsConfig ) ?: $ pathsConfig ;
2223
2324$ paths = new Config \Paths ();
2425
Original file line number Diff line number Diff line change @@ -33,8 +33,9 @@ if (strpos(PHP_SAPI, 'cgi') === 0)
3333define ('FCPATH ' , __DIR__ . DIRECTORY_SEPARATOR . 'public ' . DIRECTORY_SEPARATOR );
3434
3535// Load our paths config file
36- require realpath ( ' app/Config/Paths.php ' ) ?: 'app/Config/Paths.php ' ;
36+ $ pathsConfig = 'app/Config/Paths.php ' ;
3737// ^^^ Change this line if you move your application folder
38+ require realpath ($ pathsConfig ) ?: $ pathsConfig ;
3839
3940$ paths = new Config \Paths ();
4041
You can’t perform that action at this time.
0 commit comments