Skip to content

Commit

Permalink
Release v4.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jun 5, 2021
1 parent a0c857a commit e4cbd0e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
15 changes: 15 additions & 0 deletions app/Config/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,21 @@ class Cache extends BaseConfig
*/
public $prefix = '';

/**
* --------------------------------------------------------------------------
* Default TTL
* --------------------------------------------------------------------------
*
* The default number of seconds to save items when none is specified.
*
* WARNING: This is not used by framework handlers where 60 seconds is
* hard-coded, but may be useful to projects and modules. This will replace
* the hard-coded value in a future release.
*
* @var integer
*/
public $ttl = 60;

/**
* --------------------------------------------------------------------------
* File settings
Expand Down
3 changes: 2 additions & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@

// Load our paths config file
// This is the line that might need to be changed, depending on your folder structure.
require realpath(FCPATH . '../app/Config/Paths.php') ?: FCPATH . '../app/Config/Paths.php';
$pathsConfig = FCPATH . '../app/Config/Paths.php';
// ^^^ Change this if you move your application folder
require realpath($pathsConfig) ?: $pathsConfig;

$paths = new Config\Paths();

Expand Down
3 changes: 2 additions & 1 deletion spark
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ if (strpos(PHP_SAPI, 'cgi') === 0)
define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR);

// Load our paths config file
require realpath('app/Config/Paths.php') ?: 'app/Config/Paths.php';
$pathsConfig = 'app/Config/Paths.php';
// ^^^ Change this line if you move your application folder
require realpath($pathsConfig) ?: $pathsConfig;

$paths = new Config\Paths();

Expand Down

0 comments on commit e4cbd0e

Please sign in to comment.