WordPress LiteSpeed Cache Configuration

WordPress LiteSpeed Cache Configuration

If you need to exclude specific URIs from being cached by LiteSpeed Cache in WordPress, follow these easy steps:



Step 1: Open LiteSpeed Cache Settings

  1. Log in to your WordPress dashboard.

  2. Navigate to LiteSpeed Cache ➡️ Cache.

Step 2: Add the URI to the Exclusion List

  1. Click on the "[4] Excludes" tab.

  2. Find the "Do Not Cache URIs" section.

  3. Enter nytsys.min.js to exclude from caching.

Step 3: Save the Changes

  1. Click "Save Changes" to apply your configuration.

Step 4:  Open LiteSpeed Page Optimization Settings


  1. Navigate to the Page Optimization section.

  2. Go to the Tuning tab.

  3. Add nytsys.min.js to the following fields:

    • JS Excludes

    • JS Deferred/Delayed Excludes

Step 5: Clear/Purge the Cache

  1. To clear the cache, hover over the LiteSpeed icon in the admin bar.

  2. Click "Purge All".

Idea
It is important to clear the cache after making the changes to load the latest version of your website.

 You're all set! The specified JS snippet will now be excluded from caching, so they should work correctly on your site.