/ /website-builder/ /extensions/ /module-integration/ /order-form/

# Website Caching

Explore the power of Website Caching with Lagom WHMCS Website Builder (opens new window). This article sheds light on the caching mechanism employed by Lagom to enhance the performance of your generated pages.

Dynamic caching technique is applied to the main navigation items which are assigned to the "Website" display rule (opens new window). Main and secondary navigation menus, created through our addon, are cached within the WHMCS database. The objective is to significantly improve the loading time of your website.

When a customer visits your CMS website page, the entire navigation code, meticulously crafted in the Lagom builder, is pre-rendered and stored within the WHMCS database. This pre-caching process obviates the need for complex database calls during the visitor's session. As a result, the navigation elements are promptly displayed, ensuring a seamless and expedited browsing experience.

# Clearing Menu Cache

Menu cache is automatically refreshed every time you perform changes to your navigation items via the "Menu Manager" (opens new window) functionality. However in case this action won't be fired correctly, there is an option to perform this action manually.

Visit "RS Themes" addon, go to the "Tools" tab, and click on "Refresh" button in "Menu Cache" box.

# Disable Menu Cache

The "Disable CMS Menu Cache" option allows you to control how this caching behaves. This option appears in the "Settings" in Lagom Website Builder Extension. Go to "RS Themes" addon, open "Extensions" tab, and click "Manage" next to the Lagom Website Builder.

You can choose from four settings:

  1. Disable cache for all menus - Disables caching for both primary and secondary menus, ensuring all changes are applied instantly.

  2. Disable cache for primary menus - Caching is disabled for primary menus only, allowing immediate updates while keeping secondary and footer menus caching for speed.

  3. Disable cache for secondary menus - Disables caching for secondary menus, while primary menus and footers remain cached to improve performance.

  4. Disable cache for footer menus - Disables caching for footer menus, while primary and secondary menus remain cached for improved speed.

For more information about the types of navigation in Lagom WHMC Client Theme, see this article - Menu Manager. Please note that having Lagom WHMCS Website Builder active, the settings in Menu Manager may look a little different.

# Managing Menu Items with WHMCS Hooks

If you plan to apply WHMCS hooks (opens new window) or use modules that generate hooks affecting menu items in the Lagom WHMCS Website Builder, you will need to disable the Menu Cache. With the cache enabled, menu changes made through hooks will not take effect, and menu items are managed solely through our Menu Manager. However, by enabling the "Disable CMS Menu Cache" option, you will be able to make changes to menu items using hooks.

Important: Keep in mind that disabling the Menu Cache may slightly slow down your site’s loading speed.

For more details on how the caching system works, see Main Navigation Caching.

# Pricing Cache

All prices displayed in pages generated by the Lagom WHMCS Website Builder, are loaded from build in pricing cache. The reason of developing this functionality, is to reduce required amount of database calls, and complex pricing calculation during loading of specific pages. Especially where WHMCS installation is complicated, with large amount of products, configurable options and addons.

Whenever modifications are made to product details, addons, domains, or configuration option pricing within your WHMCS admin area, our pricing cache undergoes a refreshing process. This refresh occurs when these alterations are saved within your WHMCS system. The necessary price calculations are performed just once, and as a result, your website visitors will be presented with the final outcomes. This approach contributes to a reduction in loading times.

# Clearing Pricing Cache

If the pricing cache isn't automatically updated, you have the option to manually perform this task using our addon. Visit "RS Themes" addon, go to the "Tools" tab, and click on "Refresh" button in "Pricing Cache" box.

# Page Sections Caching

Every section you create via the Lagom WHMCS Website Builder is meticulously stored as a single database record. This optimization minimizes loading times, ensuring your content is swiftly presented to your audience.

The cached sections are intelligently updated to maintain relevancy and accuracy. The following actions trigger a cache refresh:

  • Specific Page Modification: If you make modifications to a specific page's content or layout, the cache for that page is automatically updated.
  • WHMCS System Modifications: Whenever you make changes that could impact cached pages, like updating WHMCS product pricing, the relevant cached pages are automatically refreshed.

By proactively refreshing cached pages, Lagom WHMCS Website Builder guarantees that your website's content is up-to-date and always optimized for speed and performance.

# Clearing Section Cache

If you clear "Pricing Cache" manually, it may be also required to also refresh the "Section Cache". To perform this action please navigate to "RS Themes" addon, go to the "Tools" tab, and click on "Refresh" button in "Section Cache" box.