Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix general indentation #4039

Merged
merged 1 commit into from
Dec 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions user_guide_src/source/general/caching.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ expired, it will be deleted and refreshed before being sent to the
browser.

.. note:: The Benchmark tag is not cached so you can still view your page
load speed when caching is enabled.
load speed when caching is enabled.

Enabling Caching
================

To enable caching, put the following tag in any of your controller
methods::

$this->cachePage($n);
$this->cachePage($n);

Where ``$n`` is the number of **seconds** you wish the page to remain
cached between refreshes.
Expand All @@ -42,10 +42,10 @@ the order that it appears, so place it wherever it seems most logical to
you. Once the tag is in place, your pages will begin being cached.

.. important:: If you change configuration options that might affect
your output, you have to manually delete your cache files.
your output, you have to manually delete your cache files.

.. note:: Before the cache files can be written you must set the cache
engine up by editing **app/Config/Cache.php**.
engine up by editing **app/Config/Cache.php**.

Deleting Caches
===============
Expand All @@ -54,4 +54,4 @@ If you no longer wish to cache a file you can remove the caching tag and
it will no longer be refreshed when it expires.

.. note:: Removing the tag will not delete the cache immediately. It will
have to expire normally.
have to expire normally.
Loading