Skip to content

Commit e4cbd0e

Browse files
committed
Release v4.1.3
1 parent a0c857a commit e4cbd0e

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

app/Config/Cache.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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

public/index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
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

spark

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ if (strpos(PHP_SAPI, 'cgi') === 0)
3333
define('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

0 commit comments

Comments
 (0)