Search code examples
phpwordpresscachingposts

WordPress Homepage won't show new blog post in visitors


I am facing a problem where new blog posts won't show up on the homepage of the site. The website is running with the latest PHP and in WordPress powered by Plesk in a VPS server.

Here's what I've tried so far:

  • Deactivate and even reinstall all plugins.
  • Deactivate and even reinstall the theme (I also changed the theme with another).
  • Clearing both WordPress's cache and CloudFlare's cache.
  • Change CloudFlare to "Developer Mode" to make sure there's no problem with Cloudflare.
  • Change cache plugin (currently, I have the WP Rocket, but also tried many others).
  • Reinstall WordPress using the "WordPress reinstall" button in the "Updates" page.
  • Changing PHP versions.
  • Renaming the .htaccess file.
  • Removed all files with cache in the /root/ folders.
  • Trying visiting the website with "Private window" and also from different laptops, PCs, smartphones and IPs. Same.

I even put the website in the "under construction" page and it just won't show up. As an admin, I can see all the latest posts, but as a visitor, nothing really updates. For example, the Instagram widget won't show up the new images that I have uploaded, the slider doesn't work and nothing actually gets updated.

In the browser's console, I do see a few errors (as an admin I can't), and it's the same error for many plugins:

Uncaught SyntaxError: Unexpected token '<'

This error goes to /wp-content/cache/busting/ and here's the link to the website that is facing the problems: https://artdecorationcrafting.gr/

Any help will be much appreciated!


Solution

  • The problem was CloudFlare and Ezoic. After changing the nameservers back the the main ones, fully removing CloudFlare and Ezoic, the blog started working again.