Chủ Nhật , 27 Tháng Năm 2018
Home / WORDPRESS / Hướng dẫn / [HD] Làm sao để xóa Cache trong WordPress – How to Clear Cache

[HD] Làm sao để xóa Cache trong WordPress – How to Clear Cache

Sometimes where you encounter a problem with your website, such as not seeing changes you have made in the front end of your site, it could simply be that you need to clear cache. There are 3 different cache systems in the WordPress ecosystem which we will talk about in detail.

Clear Cache – Browser Cache

Clear Cache - Browser Cache

 

Nearly all modern day browsers have an internal caching system which they use to reduce the amount of loading assets of the website (using previously downloaded ones instead from the local machine). This is a great system to improve the performance of the website loading, but may cause problems when you want to see some changes you have made during the development phase or upon changing the website. Each browser has a different process to follow when clearing cache. Detailed information on each browser is mentioned below:

  1. Google Chrome
  2. Mozilla Firefox
  3. Apple Safari
  4. Internet Explorer
  5. Opera
  6. Android
  7. IOS
  8. Windows Phone
For more information click here.

Clear Cache – Plugin Cache

Clear Cache - WordPress Cache Plugins

Using WordPress plugins to enable cache is a common practice among the community. It is not recommended to use such plugins during the development phase, but it is recommended to use them in production. In some cases theme updates or applying changes cause problems when we use cache plugins, so it is essential to clear cache in such cases. Clearing cache is different depending on which plugin you use. You need to check the plugin documentation on how to clear cache, but we list some popular cases here:

1

WP Super Cache

Clear Cache - WP Super Cache

  1. Go to WordPress Admin Menu > Settings > WP Super Cache.
  2. Click on the Delete Cache button under Delete Cached Pages section.
2

W3 Total Cache

Clear Cache - W3 Total Cache

  1. Locate the Performance link at the top section of the WordPress admin page.
  2. Click on the “Empty All Caches” link

Clear Cache – Server Cache

In some cases, hosting service providers apply internal caching to improve the performance of the server. This happens especially in WordPress managed hosting service providers. You will need to contact your hosting service provider, or check their documentation to clear server cache. Here is a list of popular servers that use this cache system. Click on the link to know how to clear server cache on those cases:

  1. WP Engine
  2. Blue Host
  3. GoDaddy
If you are not using one of the hosting service providers mentioned above, contact your provider or check their documentation.

Enable Query String

Jupiter - Clear Query String
There are cases that the other cache systems can not be set specifically to exclude dynamic parts of the theme files. For example wp-content/uploads/mk_assets/. The folder we just mentioned should not be cached as the theme dynamically generates those files. The best way to force the update of such cases is to enable the query string functionality. You can access that option from Theme Options > Advanced > Manage Theme > Query String From Static Files. Just enable that option and in some cases it will fix the issue.

Clear 3rd Party Cache

The cache conflicts happen in some cases that 3rd party Content Delivery Networks or cache systems are used. For example MaxCDN or CloudFlare or Varnish Cache can be considered as popular choices. Clearing those functionalities or disabling them temporarily is a good practice for troubleshooting.

HTACCESS Password

In some rare cases adding htaccess password to the website causes problems for dynamically generated files of the theme. It is worth to disable the HTACCESS Password and check the front end of the website to see if it will fix the problems.

Jupiter – Clear Theme Cache

Jupiter - Clear Theme Cache

Jupiter version 5 has a new feature to cache some assets to increase the performance of the theme. You will need to clear cache after you make changes in the admin section and different options of the theme. To clear the cache you simply need to click on the Clear Theme Cache link at the top left section of your WordPress admin page.

Nguồn: artbees.net

About Mr Thọ

Viết Blogs dạo :3 trên mọi miền ;) Chia sẽ đam mê gắp mọi vùng :P

Hãy để lại ý kiến nhé!

Hãy trở thành người đầu tiên bình luận!

avatar
  Subscribe  
Chọn thông báo:
%d bloggers like this: