How to Use Caching?

Webayt Caching in a CMS is an operational feature used to help pages on your website load faster. When pages are cached, the generated source code of the relevant page is stored, and the page can be displayed to the user more quickly on subsequent visits.

Caching is particularly useful for improving performance on content-rich, multilingual, or frequently visited pages. Through this section, a cache file can be created, refreshed, deleted, previewed, or its source code can be viewed as needed, by selecting a specific language and page.

What is caching used for?

Caching stores the generated HTML output of a page as a file. This allows the system to use the pre-prepared cache file when the same page is visited again, instead of re-generating the page each time.

When creating a cache file, the page's source code is compressed and saved. This allows the cache file to be stored more efficiently and the page output to be presented to the visitor more quickly.

This structure helps to increase page loading speed and reduce server-side processing load.

Especially for websites that publish in different languages, having the page output prepared in advance can provide an advantage in terms of user experience.

How to Turn Caching On or Off?

Webayt Caching in CMS can be enabled or disabled from the Settings → General Settings page.

 Settings → General Settings

The Site Settings tab is open by default on the General Settings page. Caching settings can be managed through this tab.

When caching is enabled, the system can create cache files for relevant pages and use these files to display pages to visitors faster.

How can I access the caching page?

To access the caching page, open the Operational Operations menu from the left menu in the Webayt administration panel and enter the Caching section.

 Operational Processes → Caching

This page lists cached pages. New caches can be created, existing caches refreshed, or cache files deleted if necessary, by selecting the language and page type.

What does Create & Refresh Cache do?

The Create & Refresh Cache button is used to create a cache file or update an existing cache file for the selected language and page.

If a cache file for a page hasn't been created previously, this process will create a new cache file for that page.

If the page has a previously created cache, the same process will refresh the existing cache file according to the current page output.

What happens if a cache file is not created?

If a page's cache file hasn't been manually created for that page, it may be automatically created by the system when that page is visited.

This means that if caching is enabled, the page output is prepared on the first visit to the page and can be cached for use on subsequent visits.

However, manually creating or refreshing the cache for important pages can help present the page in a more ready state for the first visitor.

What does Clearing the Cache do?

The Clear Cache button is used to delete the cache file for the selected language and page.

When a cache file is deleted, the system may have to recreate the page the next time it is visited. If caching is enabled, a new cache file may be created when the page is visited again.

Clearing the cache can be particularly useful when changes made to a page are not showing up due to the old cache.

List of Cached Pages

The caching page lists previously created cache files in a card structure. These cards typically display the cache file name, file size, and creation or update date.

This list allows you to quickly see which pages and languages are cached.

Cache files are typically named according to the page address and language. This allows cache files created for different languages to be distinguished from each other.

Cache Page Preview

By opening a preview of a cached page, one can check how the relevant cache file appears on the website.

The preview area displays the page's appearance in the relevant language. This allows you to verify whether the cached page is the correct one and how it appears to the user.

Especially when creating cache files in different languages, it's helpful to verify that the page is displayed in the correct language and with the correct content.

Is cached source code editable?

Yes, the source code of the cache file is viewable and can be edited if necessary. This source code is the cached HTML output of the relevant page.

When creating a cache file, the page's source code is compressed and saved. Therefore, in the source code editing screen, the HTML structure may appear denser, almost single-line, or with fewer spaces compared to the normal page source.

This appearance is normal. Compression helps keep the cache file more efficient and allows the page to be served faster.

The cached source code editing area contains the generated HTML structure of the page. Temporary or technical edits can be made through this area.

However, there is an important point to note here: If the cache file is refreshed, these manual edits made to the source code will be lost.

Because the cache refresh process rebuilds the page, recompresses the source code, and replaces the existing cache file with the new page output.

What should be considered when editing cache source code?

Since the cached source code is the generated HTML output of the page, changes made here should be applied carefully.

  • Keep in mind that the source code may appear compressed, and this is normal.
  • Keep in mind that changes made to the source code may be temporary.
  • Please note that manual edits will be lost when the cache is refreshed.
  • For permanent changes, use the editing area of the relevant page, module, or theme file.
  • Avoid changes that could break the HTML structure.
  • Check the page preview after making any changes.

The cache source code editing area should be used not for persistent content management, but rather for examining existing cache output or making temporary interventions in specific situations.

When should the cache be refreshed?

After making some changes to the page, the cache may need to be refreshed because the cache file might be storing the output of the old page.

Refreshing the cache may be helpful in the following situations:

  • If the page content has been updated
  • If the menu structure has been changed
  • If the module contents have been changed
  • If changes have been made to the theme or design files
  • If new translations or updates have been made to multilingual content
  • If the old content continues to appear on the front end

What should be considered when using caching?

Caching is a useful feature for performance; however, it needs to be managed properly after content changes.

  • Check if caching is enabled in Settings → General Settings .
  • You can manually create or refresh the cache for important pages.
  • After making changes to a page, consider refreshing the page's cache.
  • Keep in mind that if you delete the cache file, it may be recreated the next time the page is visited.
  • Note that the source code is compressed HTML output.
  • Note that source code changes will be lost when the cache is refreshed.
  • Make permanent changes directly to the relevant content, module, or theme area, rather than to the cache file.
  • Also, check caching on different language pages.

The Difference Between Caching and List Management

Caching stores the generated HTML output of the page. Listing management, on the other hand, enables the preparation of content or specific data sources as language-based lists.

In short, while caching speeds up page output, List Management helps ensure content data is used in a more readily available and controlled manner.

On multilingual websites, instead of relying solely on caching, creating necessary content lists provides a more robust structure. For detailed information on Listing Management, you can review the "How to Use Listing Management?" guide.

Summary

Caching , in a CMS, is a feature that helps a website run faster by storing the generated source code of pages.

Caching can be turned on or off in Settings → General Settings . Under Operational Actions, the Caching page allows you to create, refresh, delete, preview, or view source code for specific languages and pages.

The cached source code is viewable and editable; however, the cache file is saved as compressed HTML output. When the cache is refreshed, the source code is regenerated, and manual edits are lost. For permanent changes, it is recommended to use the relevant page, module, or theme editing areas.

Similar Content That Might Interest You
Load More Content
  • 20 Contents

Categories

How can we help you?

You can fill out the form below to contact our Webayt support team. Your request will be reviewed by our relevant team and you will be contacted as soon as possible.