Menù

How to Enable Cache for Pretty Menu

Why enable cache for menu?

Enabling cache for your menu allows your site to load menu content quickly, even if the content is complex. Activating the cache for the Pretty Menu module ensures that your website performs optimally by pre-loading menu data.

 

How to enable cache for the menu

To effectively enable caching for the Pretty Menu, you need to ensure that caching is activated both within the Pretty Menu module and the overall website settings. This dual approach guarantees that the menu content loads quickly and efficiently, even when it includes complex elements. Here are the steps to enable cache for both the Pretty Menu module and the Smarty cache for your website:

Enable cache for Pretty Menu module

Step 1: Open the module's configuration page.

Step 2: Navigate to "Settings" on the module's main menu.

Step 3: In the "Others" section, activate the "Enable cache" option.

Step 4: Set up "Cache lifetime": This setting controls how long the cached data is stored before it needs to be updated. For example, if you set the cache lifetime to 12 hours, the data will refresh every 12 hours, ensuring any changes to the menu or site settings are reflected in the cached content.

Step 5: Save your settings.

 

Enable Smarty cache for the website

Step 1: From the PrestaShop admin panel, navigate to "Configure > Advanced Parameters".

Step 2: In the "Smarty" section, enable "Cache" and save.

Step 3: You have successfully enabled Smarty cache for your website and the Pretty Menu module, ensuring faster load times and improved performance.

 

Clearing cache for menu changes

Why clear the cache when your menu changes?

When you make changes to your menu, it’s important to clear the cache to ensure that the updates are reflected on your site. Failure to do so may result in your site displaying outdated content. Clearing the cache forces the site to recompile the Smarty files, ensuring that all modifications take effect immediately.

 

How to clear the cache for your menu

Method 1: Clear cache directly from the Pretty Menu module:

  • Open the module's configuration page.
  • Navigate to "Settings" on the module's main menu.
  • In the "Others" section, click the "Clear menu cache" button.
  • A notification will appear in the top-right corner of the screen once the cache is successfully cleared.

 

Method 2: Clear cache from website management:

  • From the PrestaShop admin panel, navigate to "Configure > Advanced Parameters".
  • Click the "Clear cache" button in the top-right corner of your screen.

 

Method 3: Clear cache using Super Speed module:

If your website uses the Super Speed module by PrestaHero, you can go to the Super Speed module and clear the cache for the entire website.

 

By following these steps, you can efficiently manage your menu cache, ensuring your PrestaShop site remains fast and responsive. For any further assistance, refer to our detailed guides or contact support.

Conteggio visualizzazioni articolo: 23 visualizzazioni