File tree Expand file tree Collapse file tree
user_guide_src/source/libraries Expand file tree Collapse file tree 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 @@ -59,6 +59,12 @@ more complex, multi-server setups.
5959If you have more than one application using the same cache storage, you can add a custom prefix
6060string here that is prepended to all key names.
6161
62+ **$ttl **
63+
64+ The default number of seconds to save items when none is specified.
65+ WARNING: This is not used by framework handlers where 60 seconds is hard-coded, but may be useful
66+ to projects and modules. This will replace the hard-coded value in a future release.
67+
6268**$file **
6369
6470This is an array of settings specific to the ``File `` handler to determine how it should save the cache files.
You can’t perform that action at this time.
0 commit comments