This is an old revision of the document!


Cache Management

Once you have LiteSpeed Cache for WordPress configured and customized to your liking, you can turn your attention to managing the cache itself. Ideally, there should be very little actual cache management required. If you set your configuration correctly, the cache should function like a well-oiled machine.

Still, there are times when you might want to take matters into your own hands for whatever reason. This section will help you to successfully manage your cache manually.

Ideally, the purge rules you set during configuration would address all of your site’s cache purging needs. These buttons exist for those outlying situations where the rules don’t apply. You can manually purge pages from the cache in all of the ways listed here.

Purge Front Page

Press this button to purge only the front page of your site.

Multi-site: pressing this button in the network admin will result in only the main site’s front page being purged.

Purge Pages

This button will purge all cache entries that belong to pages. Don’t let the use of the word “page” confuse you here. For this button (and this button only) “page” refers to the WordPress Page post type. Everywhere else, “page” is used in the context of individual entries in a “full-page cache.”

Purge CSS/JS

This button will purge all of the minified and combined JavaScript and CSS files that were cached as a result of the settings in the Optimize tab.

Purge Error Pages

These buttons allow you to purge 403, 404, and 500 error pages.

Multi-site: If one of these buttons is pressed in the network admin, the main site's error pages will be purged.

Purge All

This button will purge all cache entries related to the current WordPress installation. This means that if a page is cached on the site using a different web application, it will not purge those cache entries.

Multi-site: pressing this button in the network admin will trigger the Purge All functionality on all of the network’s sites.

Empty Entire Cache

This is one of those buttons that should only be used when you have a problem that can’t be solved any other way. Press it to purge all of the cache entries for the entire site, including those entries from other web applications.

Multi-site: this option is only made available in the network admin. Individual site admins do not have the ability to clear the entire cache.

Purge By...

This area allows you to purge a list of pages. The available list types are: Category, Post ID, Tag,and URL. The list of the selected type should be input one-per-line in the text area above the Purge List button.

While not, strictly-speaking, cache management, database optimization is a useful tool when it comes to speeding up your site. LSCWP's DB Optimizer (available as of v1.2.1) gives you an easy way to execute some of these tasks in your WordPress database.

You'll notice that some of the buttons have teal check-marks while others have red X's. The check marks indicate that the area has already been cleaned-up. If you see a red X, that is your opportunity to do some optimization.

Clean All

Press this button to clean up everything at once. It executes all of the listed cleanups, except for Optimize Tables.

Post Revisions

Removes all old post revisions from the database. You will sacrifice your ability to go into any of your post and restore previous versions of them. Only the currently-published version of each post will be saved.

Auto Drafts

When you edit a post, WordPress automatically saves drafts now and then. This is to protect you in case you unexpectedly lose your connection, or your computer crashes. If you know that all of your posts are either published or saved correctly as drafts, then it is safe to remove the automatic drafts.

Trashed Posts

This option permanently deletes any posts or pages that have been placed in the Trash.

Spam Comments

There should be no need to keep comments that have been marked as spam. This option erases them permanently.

Trashed Comments

This option permanently deletes any comments that have been placed in the Trash.

Trackbacks & Pingbacks

When other blogs link to you, it can create trackbacks or pingbacks. Some WordPress themes display these in the comments section. If displaying these external links is not important to you, press this button to clear them from the database.

Expired Transients

Transients are the result of a form of caching that can happen in the WordPress database with the results of remote API calls. This option clears all of the expired transients from the database.

All Transients

This option clears all of the transients in the database, whether expired or not.

Optimize Tables

Use this button to optimize the database tables.

  • Admin
  • Last modified: 2017/10/25 19:11
  • by Lisa Clarke