Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Coppa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Come cancellare la cache in WordPress (passo dopo passo)

Nota editoriale: guadagniamo una commissione dai link dei partner su WPBeginner. Le commissioni non influenzano le opinioni o le valutazioni dei nostri redattori. Per saperne di più su Processo editoriale.

Recentemente, uno dei nostri lettori ci ha chiesto come cancellare la cache di WordPress.

Il browser web, il server di hosting e i plugin di caching possono tutti servire contenuti memorizzati nella cache, il che può rendere difficile vedere subito le modifiche apportate al sito web.

La cancellazione della cache di WordPress è anche il primo consiglio per la risoluzione dei problemi che si sente spesso.

In questo articolo vi mostreremo come cancellare correttamente la cache di WordPress. In questa guida tratteremo la cache del browser, la cache dell’hosting web e i migliori plugin per la cache di WordPress.

How to clear your cache in WordPress (4 ways)

Che cos’è la cache in WordPress?

Le soluzioni di caching memorizzano le versioni statiche del vostro sito web in una cache. Ciò consente a WordPress di non eseguire gli script PHP più pesanti a ogni caricamento del sito.

Il processo di caching contribuisce a migliorare la velocità e le prestazioni di WordPress e l’esperienza complessiva dell’utente.

Ecco un esempio di come si presenta il processo di caching:

How caching works in WordPress

Esistono diversi tipi di soluzioni di caching per WordPress. Il metodo più diffuso è l’utilizzo di un plugin per la cache di WordPress, come WP Rocket o WP Super Cache.

Questi plugin consentono di controllare quali file e media vengono memorizzati nella cache, quando la cache scade, quando la cache viene ripulita e altro ancora.

A seconda del vostro provider di hosting, potreste già avere il caching di WordPress incorporato. Ad esempio, le società di hosting WordPress gestite come WP Engine gestiscono le proprie soluzioni di caching.

Gli host WordPress più diffusi, come Bluehost e SiteGround, hanno anche una cache integrata per i loro utenti.

Se si utilizza un web application firewall come Sucuri o Cloudflare per migliorare la sicurezza di WordPress, è disponibile anche una cache per velocizzare il sito e ridurre i tempi di inattività.

Infine, la maggior parte dei browser Web moderni memorizza anche le versioni in cache delle pagine sul browser Web.

Perché cancellare la cache del sito WordPress?

A volte la cache non si accorge che sono state apportate delle modifiche al vostro sito WordPress. Invece di caricare la nuova versione del sito, l’utente rimarrà bloccato a vedere la vecchia versione.

In questo modo si eviterà che sia l’utente che i visitatori vedano gli aggiornamenti effettuati.

La cancellazione della cache di WordPress assicura che la versione più recente del vostro sito web sia sempre disponibile.

Detto questo, vediamo come cancellare la cache in WordPress. Utilizzate i link rapidi qui sotto per passare direttamente al metodo che desiderate utilizzare:

Video tutorial

Subscribe to WPBeginner

Se preferite le istruzioni scritte, continuate a leggere.

Metodo 1: Cancellare la cache del browser web

Innanzitutto, è necessario cancellare la cache del browser web. La maggior parte dei browser memorizza i contenuti statici del sito web, come fogli di stile, JavaScript, immagini e altri file del sito, per migliorare i tempi di caricamento.

A volte, però, i browser web possono non accorgersi che una pagina web è cambiata. Invece di recuperarne una nuova copia, caricano la pagina dalla versione memorizzata nella cache del browser.

Per cancellare la cache del browser in Google Chrome, fare clic sull’icona del menu, quindi selezionare Altri strumenti ” Cancella dati di navigazione”.

Clear browser cache

Viene visualizzata una finestra a comparsa in cui è possibile selezionare il contenuto che si desidera rimuovere dalla cache.

Assicurarsi che la casella “Immagini e file nella cache” sia selezionata, quindi fare clic sul pulsante “Cancella dati di navigazione”.

Clear cached images and files

Ora avete cancellato con successo la cache del browser. Potete visitare il vostro blog WordPress per vedere se sta caricando la nuova versione del vostro sito.

Per maggiori dettagli, consultate la nostra guida su come cancellare la cache del browser in tutti i principali browser.

Se ancora non vedete le modifiche apportate al vostro sito web, passate agli altri metodi di questo articolo.

Metodo 2: Cancellare la cache nel plugin di caching di WordPress

Se si utilizza un plugin per la cache di WordPress sul proprio sito, è necessario cancellare la cache del plugin.

Ecco come cancellare la cache con alcuni dei più diffusi plugin per la cache di WordPress.

Cancellare la cache in WP Rocket

WP Rocket è il miglior plugin per la cache di WordPress sul mercato. La parte migliore dell’utilizzo di WP Rocket è che costruisce proattivamente la cache di WordPress in background, in modo che i vostri utenti ricevano sempre una versione in cache del vostro sito.

Inoltre, è molto facile cancellare i file nella cache con un solo clic.

Basta andare in Impostazioni ” WP Rocket e fare clic sul pulsante “Cancella cache” nella dashboard del plugin.

Clear WP Rocket cache

Ora WP Rocket cancellerà tutti i file nella cache per voi.

Cancellare la cache in WP Super Cache

WP Super Cache è un altro popolare plugin per la cache di WordPress. Permette di cancellare o eliminare tutti i contenuti in cache con un solo clic.

Basta andare su Impostazioni ” WP Super Cache nella dashboard di WordPress, quindi fare clic sul pulsante “Elimina cache” nella sezione “Elimina pagine memorizzate nella cache”.

Clear WP Super Cache

A questo punto, WP Super Cache eliminerà tutti i file memorizzati nella cache dal vostro sito web.

Cancellare la cache in W3 Total Cache

W3 Total Cache è un plugin per la cache di WordPress molto utilizzato. Come gli altri plugin sopra citati, è possibile cancellare tutte le cache con un solo clic.

È necessario andare su Prestazioni ” Dashboard e poi fare clic sul pulsante “Svuota tutte le cache”.

Clear W3 Total Cache

Il plugin W3 Total Cache eliminerà ora tutti i contenuti memorizzati nella cache del sito.

Metodo 3: Cancellare la cache nel vostro hosting WordPress

Alcuni provider di hosting WordPress dispongono di opzioni di caching integrate che aiutano a velocizzare WordPress.

Ecco come cancellare la cache dell’host web in alcuni degli host WordPress più diffusi.

Cancellare la cache in WP Engine

WP Engine è uno dei migliori fornitori di hosting WordPress gestito. Dispone di una soluzione di caching integrata, per cui gli utenti non hanno bisogno di installare un plugin di caching.

Se avete apportato delle modifiche al vostro sito, ma non vengono visualizzate, potete cancellare la cache di WP Engine dall’area di amministrazione di WordPress.

È necessario fare clic sulla voce di menu “WP Engine” nella barra di amministrazione di WordPress, selezionare l’opzione di menu “Caching”, quindi fare clic sul pulsante “Cancella tutte le cache”.

WP Engine clear cache

WP Engine eliminerà automaticamente ogni cache memorizzata per il vostro sito WordPress.

Cancellare la cache in Bluehost

Bluehost è uno dei migliori fornitori di hosting WordPress ed è ufficialmente raccomandato da WordPress. Dispone di una soluzione di caching integrata che migliora immediatamente le prestazioni e la velocità di caricamento di WordPress.

Bluehost consente di cancellare facilmente la cache di WordPress dall’area di amministrazione di WordPress.

È sufficiente accedere alla dashboard di amministrazione di WordPress per vedere il pulsante “Caching” nella barra degli strumenti di amministrazione superiore. Passateci sopra e fate clic sull’opzione “Elimina tutto”.

Clear Bluehost cache

Bluehost ora cancellerà i dati dalla cache di WordPress.

Cancellare la cache in SiteGround

SiteGround è uno dei principali provider di hosting WordPress, noto per la velocità e l’assistenza clienti di alto livello. Offre una soluzione di caching integrata per migliorare le prestazioni del sito web.

È possibile cancellare la cache di SiteGround dal pannello di controllo del proprio account di hosting e dall’area di amministrazione di WordPress.

Per cancellare la cache dal pannello di controllo Siteground, è necessario accedere alla dashboard del proprio account di hosting e andare su Velocità ” Cache nella sezione Strumenti del sito.

Quindi, selezionare l’opzione di menu “Cache dinamica”. Quindi, fare clic sull’icona del menu accanto al nome del dominio e selezionare l’opzione “Cache” dal menu a tendina.

Clear SiteGround hosting cache

Un altro modo per gestire la cache di Siteground è il plugin SG Optimizer. La prima cosa da fare è installare e attivare il plugin. Per maggiori dettagli, consultare la nostra guida su come installare un plugin per WordPress.

Dopo l’attivazione, è necessario fare clic sul pulsante “Purge SG Cache” nella barra degli strumenti superiore dell’amministrazione di WordPress.

Purge SG cache

Il plugin cancellerà automaticamente la cache di WordPress di SiteGround.

Metodo 4: Cancellare la cache dei plugin del firewall di WordPress

Se utilizzate un firewall WordPress come Sucuri per proteggere il vostro sito web, c’è un altro livello di cache che dovrete eliminare.

È possibile cancellare la cache di Sucuri andando su Sucuri ” Firewall (WAF) nel pannello di amministrazione di WordPress.

Quindi, selezionare l’opzione di menu “Cancella cache” e fare clic sul pulsante “Cancella cache”.

Clear Sucuri cache

Suggerimento bonus: se il vostro sito WordPress è stato spostato di recente, potrebbe essere necessario cancellare la cache DNS. In questo modo vi assicurate di ricevere informazioni DNS aggiornate e di accedere alla versione più recente del vostro sito. Per maggiori dettagli, consultate la nostra guida su come cancellare la cache DNS.

Speriamo che questo articolo vi abbia aiutato a capire come cancellare la cache in WordPress. Potreste anche voler consultare la nostra guida su come creare una newsletter via e-mail e la nostra scelta dei migliori software di live chat per le piccole imprese.

Se questo articolo vi è piaciuto, iscrivetevi al nostro canale YouTube per le esercitazioni video su WordPress. Potete trovarci anche su Twitter e Facebook.

Divulgazione: I nostri contenuti sono sostenuti dai lettori. Ciò significa che se cliccate su alcuni dei nostri link, potremmo guadagnare una commissione. Vedi come WPBeginner è finanziato , perché è importante e come puoi sostenerci. Ecco il nostro processo editoriale .

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Il kit di strumenti WordPress definitivo

Ottenete l'accesso gratuito al nostro kit di strumenti - una raccolta di prodotti e risorse relative a WordPress che ogni professionista dovrebbe avere!

Reader Interactions

85 commentiLascia una risposta

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Jiří Vaněk says

    Perhaps I would also add for people using CDNs like CloudFlare, that caching is also enabled there, and additional ‘hidden’ caches might exist on the CDN side. Either a plugin connected to the CDN can clear it, or it needs to be done manually. For instance, in CloudFlare’s dashboard, cache can be cleared in the designated section.

  3. Sue says

    This was great content and very helpful – clear and concise, so even I could understand it. I’m completely new to this game with no former experience in website building at all. I don’t know what I would have done without you. Thanks again!

  4. Silas Imoh says

    The joy in me now is beyond imagination. Before now, When i make changes on my theme in my site, it doesn’t apply…i never knew it was a caching problem. After doing as instructed, My customizations are now live. Thanks alot WP Beginner. Your are the best

  5. Ellen says

    I keep getting a notice from the MonsterInsights plugin in my Site Health that says:
    We noticed you’re using a caching plugin or caching from your hosting provider. Be sure to clear the cache to ensure the tracking appears on all pages and posts.

    I wasn’t using a caching plugin as far as I knew

    • WPBeginner Support says

      You may want to reach out to your hosting provider to ensure there isn’t something on their end for caching that could be part of the issue.

      Admin

  6. Sara says

    My host support is telling me the following when I asked them to help me clear my sites cache:

    “There is no server-side caching on any of our servers, so this message may be caused by one of your installed WordPress plugins that enables some kind of caching.”

    My question is therefore how I can locate what plugin that needs clearing. Do you know?

    • WPBeginner Support says

      You would want to go under Plugins > Installed Plugins and see if any of your plugins say in their description that they are a caching plugin.

      Admin

  7. Gopal says

    Hi thanks for the article. I have followed every step mentioned but when i designing home page there in no background overly set by me but when browse that page it showing background image but not when i editing page

    • WPBeginner Support says

      You would want to check with the support for your specific theme if clearing the cache is not updating your changes to ensure it is not an issue with the theme itself.

      Admin

  8. Farukh Hussain says

    Hi,

    I have a question please. Do I need to always clear all the cache manually using w3 total cache or any other plugin.. Isn’t it possible to make it automatically clear all cache daily.

    • WPBeginner Support says

      The caches should clear over time based on the caching you are using, this guide is how to force it to clear in case there are any issues or something that needs to be displayed that isn’t showing.

      Admin

  9. Vishal soni says

    I have bluehost in-built cache and now I purge all cache from WordPress and how to upload new cache memory again? also, do I need another paid cache service like wp rocket? What would be better

    • WPBeginner Support says

      If you need another cache would be a question of personal preference. Your site will generate a new cache so you don’t need to worry about uploading a new cache.

      Admin

    • WPBeginner Support says

      If your CSS changes are not appearing then this would be the first step for having those changes appear :)

      Admin

  10. Ravi Teja says

    Some of my website users are facing problem with their browser cache. I am suggesting them to delete the cache, but I can’t do it for everyone.

    Is there anything I can do to stop browser caching for some pages on my website?

    • WPBeginner Support says

      You would need to check with the support for the caching you are using for what is available.

      Admin

    • WPBeginner Support says

      It would depend on what caching you’re talking about, if it is caching from your host then you would need to reach out to your hosting provider and they should be able to show you what options are available.

      Admin

  11. ron quiring says

    So if you have caching available (and are using) on WPEngine or Securi firewall, then is your article saying that we should NOT implement a caching plugin on wordpress?

    • WPBeginner Support says

      No, you can still use caching on your site with those plugins, this article is to show how you clear the cache if you are having an issue that would require you to clear your cache.

      Admin

    • WPBeginner Support says

      You shouldn’t lose any of your saved content when clearing the cache on your WordPress site.

      Admin

  12. william says

    I am having this problem

    The site is experiencing technical difficulties.

    Only for my homepage please assist me

  13. Nomaan says

    I have same on my website. i had been tried all of your step but till not getting any kind result. help me

    • WPBeginner Support says

      If none of these methods cleared your cache, you would want to reach out to your hosting provider to see if they have any caching that is affecting your site on their end.

      Admin

  14. mark dannau says

    Hello to all,

    Great article. I have a closely related question.

    When I edit a page of my website in WP, it strangely shows the code of the cdn’s pull zones, not the original code. How do I get back to the original code?

    Thanks for the help, Mark

    • WPBeginner Support says

      For that, you would want to check with your CDN to ensure it is properly configured as a likely cause of the problem

      Admin

  15. jamila says

    Hi , i want to ask if i do clear cache with one of these plugins there any content or design disappear, plz help i want to clear cache and i’m afraid to lost the design and content

    • WPBeginner Support says

      Unless you were editing the design and you are clearing your cache to see that update, your design should not be modified.

      Admin

  16. Shein says

    Hi everyone, it really is a good article….but a question came to my mind. If we face caching problems while building our websites, then how about for visitors to our sites. This may be an insane question, but i am afraid that some of our visitors may not see our updates. Thanks a lot and looking forward an answer from some.

  17. Jaroslav Havlicek says

    Hello, I do everything to clear cache from wordpress, chrome and deleted everything on ftp server. I did a new instalation of wordpress on the same web site, but on the web is the old look of the web. So please, how can i delete old web ?

    • WPBeginner Support says

      You would want to reach out to your hosting provider to ensure nothing on their end would be causing the issue.

      Admin

  18. Tom says

    Hi, I noticed that the Soliloquy slider images are only loading on mobile screens or if I make my browser window way smaller on my desktop screen. I have pretty large images loaded in the slider (1500×1500 px). Is there something I’m missing?

  19. Stavros says

    Hello i have the newspaper theme on word press. My posted views sudently are zero and do not give me the real numbers of visitors. i have over 35.000 uniqs! How can i fix it please?

  20. Verotiana says

    Thanks for this article. But what if I’m not using any of these WP plugins, yet my page still won’t update…?

  21. Christian Okonkwo says

    ? Can deleting of cash removed my admin login…
    Am always afraid that Cashing can delete a database or anything within my host file.
    But i need to do it to see some changes.

    ?I want also know if “database establishing errors” can be cause by cleaning cash.

  22. Ann says

    Great Article! I have a question. After updating plugins do I have to clear out all my caches again? Thanks!

    • WPBeginner Support says

      Hi Ann,

      It is not necessary as most caching plugins are setup to automatically purge cache at regular intervals. However, you can also go ahead and manually clear cache if you find something missing.

      Admin

  23. Nick says

    Thank you for the helpful post! Clearing my browser cache fixed issues for me, but Is it correct to say that any repeat visitors to my site could run into issues from not clearing their own browser cache? I would like to universally clear cache so that it’s dummy proof and doesn’t require my users to go in and fix it themselves. Is that possible in any way?

  24. Yusuf Bitrus says

    Thanks for this awesome suggestions and listings, I think super cache one the best cache plugin I have ever used.

    And it is working like a .

    I love it

  25. Neal Umphred says

    Thanks for your useful article! What does the CLEAR CACHE button on the Publish menu in the WordPress admin section do?

  26. Alex says

    It amazes me that most important question has been ignored. How to clear cache saved in other peoples’ browsers? I.E. people who visit you wordpress website and maybe have no idea how to clear icache or that they need to do it. Thousands of plugins but not one which would add some version parameter to all website urls therefore forcing browsers to request them as new files.

    • Sachin Singhi says

      I have also been looking for a way to do the same. Have realised that if we do not enable the cache at all it will work but impact the performance of the website.

  27. Rohan says

    Hi, how do I clear cache if I don’t have a cache plugin – taken over a community group site and presumably previous webmaster used then deleted a cache plugin without clearing the cache first?!

  28. Esther Roche says

    Hi!
    I use Fastest Cache and I was wondering what is the difference between

    CLEAR CACHE OF THIS PAGE
    DELETE CACHE
    DELETE CACHE AND MINIFIED CCS/JS

    Can you tell me please?
    Thanks in advance and thanks for this post!
    Esther

    • WPBeginner Support says

      Hi Esther,

      Clear cache of this page, removes the cached files for the page you are currently viewing. Delete cache, deletes cached files and the last deletes everything including minified CSS/JS.

      Admin

      • Esther Roche says

        So,

        when I make changes in a specific page and someone else can’t see them, I should just use “clear the cache” of that page; but if I make changes to a couple of pages or more, I should either clear cache of each separately or use “delete cache”, which would let them see the changes in the whole site. Is this right?

        Thanks again for your patience!

        • WPBeginner Support says

          Hi Esther,

          Most caching plugins will automatically clear the cache for a page when you make changes those pages. You will only need to use those features if you are working on your website’s theme or adding some new plugin and those changes are not showing up on your website.

  29. Cherisa says

    When I try to install WP Super Cache, I get the message that says “Plugin not allowed on our system due to performance, security, or compatibility concerns. Contact support with any questions”. But at the bottom there’s a check to tell me that it is “compatible with your version of wordpress”. This is the same with W3 Total Cache. What is wrong?

    • WPBeginner Support says

      Hi Cherisa,

      Some WordPress hosting companies block caching plugins because they have their own caching installed on their servers. Please contact your hosting provider to confirm.

      Admin

  30. Andy says

    Similar problem here. Nothing happens when you click on my menu on mobile devices.

    Any help is appreciated.

    Thank you!

  31. kandra says

    Damn just what I need.

    I feel so stupid that I had people from my web host just to clear this mess.

    Anyway,

    how you set this website gone from comment form. this is awesome. I want to have things like this in my blog pencaricerah.com.

    Do you have the tutorial? Are you using the default comment form 7?

  32. Melch Wanga says

    Not using a plugin but my CSS changes are not showing in Chrome until the cache is cleared. How do I ensure that my website visitors get the new styling without asking them to clear their browser’s cache.
    NB: Its only on Chrome.

    Thanks.

    • Group Of Oceninfo says

      Looking for the same answer, Whenever making change in CSS it’s not showing till hard refresh and it’s not suggestible to ask visitor to do hard refresh. So, How we can serve new css changes to the visitors? How to clear all the cookies/browser cache file.

      As of now I am using W3 Total Cache plugin, Even after clicking on Performance > Dashboard > Empty All Caches it’s not showing new changes until hard refresh. Can you please suggest some good method for wordpress? I am not using any version css version number as well as GT Matrix suggesting to remove query string I have removed using function.php

      Waiting for some positive feedback.

  33. Masoud says

    thank you for this. but
    i am not using a cache plugin,
    and i only enabled wordpress built in cache ,
    i placed this code into my wp-config.php

    /* WordPress Cache */
    define( ‘WP_CACHE’, true );
    define(‘ENABLE_CACHE’, true);
    define(‘CACHE_EXPIRATION_TIME’, 360000);

    would you mind pleaseee tell , how to flush this cache please ?

  34. Jamie says

    I do not have a plugin installed, but I am having trouble. If I install one now, after the fact, will that help?

  35. Rohan chowdhury says

    Dear Admin I want you to post some tutorial regarding advertisement on website for beginners who have less tariffs in their site.

    By the way I love your work.

  36. Towfiq says

    It would be great if you could show how to clear the cookie of another 2 popular browsers: Firefox & Safari.

  37. Gaurav Khurana says

    Thanks but how frequently which should clear caches . Also would be better if you can mention sequence of caches to be clear. So we can take note of it point by point

  38. Jeremy says

    Good read. Didn’t know about the Sucuri caching. Also, recommending adding a tip for the browser cache. CTRL + SHIFT + R usually works just as well by forcing a refresh that bypasses cache and keeps you having to dump your browser cache, every time.

  39. Dan Kapellen says

    This is a valuable article. I learned much about the role of cache, how to optimize its use and maintenance measures. Thank you.

Lascia una risposta

Grazie per aver scelto di lasciare un commento. Tenga presente che tutti i commenti sono moderati in base alle nostre politica dei commenti e il suo indirizzo e-mail NON sarà pubblicato. Si prega di NON utilizzare parole chiave nel campo del nome. Avremo una conversazione personale e significativa.