Y
Y
YakutD2020-06-25 09:24:00
WordPress
YakutD, 2020-06-25 09:24:00

How to clear cache in Wordpress?

I am constantly struggling with the problem, I believe, of caching my WordPress sites. If I changed something, but I could not see these changes, even clearing the browser cache and causing a hard page reload. But in incognito, or browsers in which I did not open this site, everything is fine, all my changes are visible. Not to completely delete the entire history of the browser (I have Chrome) because of one or two sites? I've tried various pagins like hyper cache and wp super cache. What should I do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AlexGlinskiy, 2020-06-25
@AlexGlinskiy

Usually, after changing the site, I change the version of the styles and everything is fine

wp_register_style( 'my_reset', get_template_directory_uri() . '/css/main.min.css', array(), '1.2', 'screen');

O
Orkhan Hasanli, 2020-06-25
@azerphoenix

Hello!
1) The cache can be implemented not only with the help of WP plugins. But also server caching on the side of apache, nginx, etc. And also on the side of CDN services, if they are connected. Also, the cache is possible on the client side (in the browser).
2) For example, for convenience, in the browser that I use for development, I turned off caching altogether. Firefox - https://support.mozilla.org/ru/questions/1124186
3) Regarding the Firefox browser, reloading the page with clearing the browser cache - ctrl + f5 or ctrl + shift + R
4) AlexGlinskiy also suggested you another option when You can use hashes to "force" the browser to load the updated page.
5) For caching in VP I use Wp Fastest Cache + Fastest Cache Premium. One of the positives of this plugin is auto-clearing the site cache when updating / adding a page, post, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question