Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:cache:lscwp:configuration:purge_all_button [2018/01/05 19:12]
Lisa Clarke [CDN]
litespeed_wiki:cache:lscwp:configuration:purge_all_button [2020/11/14 15:18] (current)
Lisa Clarke Redirect to new Documentation Site
Line 1: Line 1:
-====== Cache Management ====== +~~REDIRECT>​https://docs.litespeedtech.com/​lscache/lscwp/toolbox/~~
- +
-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. +
- +
-===== Purge ===== +
- +
-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. +
- +
-{{:​litespeed_wiki:​cache:​lscwp:​lscwp-management-purge.png?​direct&​800|}} +
- +
-==== 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 **[[litespeed_wiki:​cache:​lscwp:​configuration:​minification|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 (for instance, a separate WordPress blog or a XenForo forum), it will //not// purge those cache entries. +
- +
-If you have the crawler running, the Purge All button will also purge any crawled pages and reset the sitemap. +
- +
-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. +
- +
-===== DB Optimizer ===== +
- +
-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. [[https://blog.litespeedtech.com/​2017/09/​20/​wpw-database-optimization/​|Learn more on our blog.]] +
- +
-{{:​litespeed_wiki:​cache:​lscwp:​lscwp-management-dboptimizer.png?​direct&​800|}} +
- +
-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. +
- +
-===== CDN ===== +
-LSCache for WordPress provides a mechanism for managing your external CDN account, eliminating the need for an extra plugin. +
- +
-{{:​litespeed_wiki:​cache:​lscwp:​lscwp-management-cdn.png?​direct&​800|}} +
-==== Cloudflare ==== +
-Before you can use the functions in this section, you will need to set up the Cloudflare API in the settings. Navigate to **LiteSpeed Cache > Settings > CDN** and set **Cloudflare API** to ''​ON''​. +
- +
-Once the API settings are saved, the elements of this area will be populated. +
- +
-=== Cloudflare Domain === +
-This is the domain that you have configured to be served by Cloudflare. It is informational only and cannot be changed here. If it is in error, you will need to fix it in your Cloudflare account. +
- +
-=== Cloudflare Zone === +
-This is the unique id that was assigned to your domain by Cloudflare. It is informational only and cannot be changed here. You can see it on [[https://www.cloudflare.com/​a/​profile|your Cloudflare profile]]. +
- +
-=== Development Mode === +
-These buttons allow you to turn on Development Mode, turn it off, and check to see whether it is running. If you are making updates to your site, and want to verify that they are working as planned, Development Mode allows you to temporarily disable Cloudflare so that you may see your updates in realtime. +
- +
-After three hours, Development Mode will turn itself off, or you can turn it off manually via the button provided. +
- +
-=== Purge === +
-Press this button to purge your Cloudflare cache on demand. This is helpful if you have made changes that result in an LSCache purge, and you want to make sure Cloudflare is up-to-date. +
  • Admin
  • Last modified: 2018/01/05 19:12
  • by Lisa Clarke