Skip to content

Commit f5b0345

Browse files
committed
docs: add user guide
1 parent c90a27e commit f5b0345

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

user_guide_src/source/changelogs/v4.5.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Enhancements
2424
Commands
2525
========
2626

27+
- Added ``spark optimize`` command to optimize configuration for production environment.
2728
- Added ``spark make:test`` command to generate a skeleton test file. See
2829
:ref:`cli-generators-make-test` for the details.
2930
- Added ``spark config:check`` command to check Config values. See

user_guide_src/source/concepts/autoloader.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,18 @@ You can use the ``spark cache:clear`` command:
187187
188188
Or simply delete the **writable/cache/FileLocatorCache** file.
189189

190+
.. note::
191+
The ``spark optimize`` command clears the cache.
192+
190193
How to Enable FileLocator Caching
191194
=================================
192195

193196
Set the following property to ``true`` in **app/Config/Optimize.php**::
194197

195198
public bool $locatorCacheEnabled = true;
196199

200+
Or you can enable it with the ``spark optimize`` command.
201+
197202
.. note::
198203
This property cannot be overridden by
199204
:ref:`environment variables <configuration-classes-and-environment-variables>`.

user_guide_src/source/concepts/factories.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ You can use the ``spark cache:clear`` command:
313313
314314
Or simply delete the **writable/cache/FactoriesCache_config** file.
315315

316+
.. note::
317+
Since v4.5.0, the ``spark optimize`` command clears the cache.
318+
316319
How to Enable Config Caching
317320
============================
318321

@@ -322,6 +325,8 @@ Set the following property to ``true`` in **app/Config/Optimize.php**::
322325

323326
public bool $configCacheEnabled = true;
324327

328+
Since v4.5.0, you can enable this with the ``spark optimize`` command.
329+
325330
.. note::
326331
This property cannot be overridden by
327332
:ref:`environment variables <configuration-classes-and-environment-variables>`.

0 commit comments

Comments
 (0)