How to Add Cache Exclusions with Solid Performance

Introduction

This guide will help you understand how to exclude specific pages or entire site paths from being cached using Solid Performance. By the end of this guide, you’ll know why certain pages should be excluded from caching and how to implement these exclusions effectively, ensuring your website maintains optimal performance while providing personalized experiences for your users.

Overview

Cache exclusions are essential for site administrators to fine-tune their website’s caching behavior. Here’s what you need to know:

  • Cache exclusions prevent certain pages or entire site paths from being cached.
  • Excluding pages with individualized user information, like shopping carts or account management pages, is crucial.
  • Proper use of cache exclusions ensures users see up-to-date, personalized content while benefiting from caching on other parts of your site.

Exclude Pages by Path

You can exclude individual pages or entire sections of your site from caching by specifying their paths. Here’s how:

  1. Navigate to Settings > Solid Performance > Advanced.
  2. To exclude an individual page or post, enter its full path:
  • Example: /blog/my-summer-vacation or /company/careers
  1. To exclude all subpages under a specific path, use an asterisk (*) wildcard:
  • Example: /calculators/* (This will exclude all pages under the /calculators/ directory)

Pro Tip: Be specific with your exclusions to maintain optimal site performance. Exclude only what’s necessary.

(Link to advanced documentation for excludes?)

Exclude Individual Posts

Depending on your content editing interface, there are two ways to exclude individual posts or pages:

Classic Editor

If you’re using the Classic Editor, follow these steps:

  1. Open the post or page you want to exclude from caching.
  2. Look for the meta box on the right side of the edit screen.
  3. Find the checkbox labeled “Exclude from cache”.
  4. Check this box to exclude the current post or page from being cached.

Block Editor

For those using the Block Editor (Gutenberg), here’s how to exclude a post or page:

  1. Open the post or page in the Block Editor.
  2. Click on the options menu (three vertical dots) in the top-right corner.
  3. Look for the “Plugins” section in the dropdown menu.
  4. Find the toggle switch for excluding the page from cache.
  5. Switch the toggle to “On” to exclude the current post or page from caching.
Have more questions? Submit a request