How to cache entire page

From TomatoCMS Documentation

Jump to: navigation, search

TomatoCMS 2.0.6 allows you to cache entire pages. Therefore, if you load the page for the first time, all HTML content of page will be cached and the cache version will be loaded in next page load.

How to cache entire page

It is easy for you to configure caching entire pages.
After logging in the back-end section, goto Customize > Cache > Config menu.
Select the page you want to cache content and set the life time in seconds.
In the following image, I made a simple setting: Cache the homepage, category and article details page in 5, 10 and 15 minutes, respectively.

File:206_cache_config.jpg

Finally, press Save button.

How to know that my page has been cached

After loading the page, you can view the source of page by pressing the Ctrl+U buttons (for most web browsers) (or right click on the page and click View Page Source menu item).

File: 206_cache_view_page_source.jpg

If you see the cached time at the beginning as above image, congratulation!
Your page has been cached successfully.

How to delete cached pages?

In order to delete cached pages, goto the Customize > Cache menu in the back-end section, then click on the Clear link associating with Pages cached section.

File: 206_cache_clear_link.jpg

You also can delete all cached pages manually by deleting all files in the /temp/cache/url directory:

File: 206_cache_folder_store.jpg

Personal tools