Search code examples
wordpresscachingcache-control

Clearing wordpress caching not working, shows the old page unable to clear cache


I redesigned my wordpress site recently but fortunately/unfortunately i had some sort of caching plugin installed on it which is causing the first load page (the home page) to show as the older version. Only on reload is it showing the right (Updated home) page.

Heres what i already tried:

  • Clearing server side caching
  • Tried to set cache to past using .htaccess (Obviously Failed - 500 Internal Error)
  • Had my server rebooted
  • Installed many plugins to Clear the cache (Ofc none worked so uninstalled them too)
  • Checked if i had some cached content using cache checker (image below)(Home page is cached for 30 days) https://www.giftofspeed.com/cache-checker/
  • checked with gtmetrix.com (image below)(CACHED TILL 3RD AUG & theres 22 days to go still) https://gtmetrix.com/reports/sugarswap.in/1Z401LB0
  • i tried deleting cached files from the file directories manually, searched but couldn't find whatever is actually causing it.

I am at a loss, need the updated page to show earliest possible and im unable to clear this caching issue. If its of any help/ clue the gtmetrix image gives a link

<https://www.sugarswap.in/wp-json/>; rel="https://api.w.org/", <https://www.sugarswap.in/>; rel=shortlink

I am also including how the page should look and how it is looking on first load on both mobile and desktop below.

Desktop (Old) OLD VERSION OF THE SITE Desktop (NEW) NEW VERSION OF THE SITE

Mobile (Old)--------------------------------------------------------------Mobile (NEW)

OLD MOBILE VERSION (UNDERCONTRUCTION PAGE) NEW MOBILE VERSION OF THE SITE

UPDATE:(12th Jul 2020 05:27pm IST)

I tried this plugin called "Proxy Cache Purge" and checked via it and the following was the result it gave. Note how it has the same https://api.w.org/ in link and X-server-cache as true. Well the plugin itself didn't help purging the cache anyway, So i am STILL stuck. :( Proxy Cache Purge URL Check Results


Solution

  • Could you try to put into your wp-config.php file this:

    define('WP_CACHE', false)