Slow website when using the dedicated server in Germany


I have a website that we are trying to switch from an old server located in US to one new server located in Germany. The one is Germany has a trace delay

The new server in Germany is loading the website a lot slower as you can see in the video here

The old server is on the left and the new server is on the right. You can see the significant delay happening on each page load.

One additional advantage on the OLD server is that it has SSD drives, the new one does not. Do you have a way we can reduce the delay on the new server?

Neither of those IP addresses are Cloudflare. If it’s a server performance issue, your best bet is to get some tips from Stack Overflow or some other general server support forum.

Hi sdayman,

The new server is configured as best it could be with caching, redis cache and other options. When we enable cloudflare on it, the website still loads slowly compared to using cloudflare on the old server. Would there be a way to cache additional elements on Cloudflare that can make the website load fast from the new server that has the downside of being in Germany and not having SSD drives.

Cloudflare cannot speed up delivery of requests being served from your origin server. Your origin server will always be the initial bottleneck for serving any requests. The exception is when requests get served from Cloudflare CDN cache, but only static assets (jpg, css, js, etc) are served from CDN, and even these requests will frequently get refreshed from your origin server.

There is an option to setup CDN cache for your pages (html), but this requires creating a page rule to “cache everything” combined with a custom “Edge Cache TTL”. Also, this means pages get cached on Cloudflare CDN, and if you make changes to your web pages, they will not reflect in browser until you manually empty the Cloudflare edge cache.

Ultimately, this is something you need to look into on your origin server. Is it only “pages” that load slower than before? Or also all static assets? If only pages are slower, and served by PHP for instance, it could be this server is less resourceful (cpu). If everything is slower, it’s likely affected by lack of SSD disks. Also, just because the server is dedicated, doesn’t necessarily reflect on the network. Could be many things!

1 Like

Thank you for your help. Even when I compare the backend like the Wordpress dashboard at wp-admin area, those pages load slowly on the new server as well.

Do you know if I can setup CDN cache as you mentioned for all the pages on the site? Would the pages show new comments that they receive on posts? We make new posts every half hour, will the homepage show the new content?

Caching as much as possible while allowing new comments and posts to appear will solve a lot of our problems.

Sounds like it’s related to available resources (cpu). You would need to investigate this if you want to find out why your dedicated server in Germany does not seem sufficiently fast.

Yes you can, but you would need to make a rule first to enable caching for html pages, and then make a rule for /wp-* that excludes your wp-login and wp-admin.

Unfortunately, no, and this would probably be one good reason why you can’t really use page caching for Wordpress if you have comments enabled. The exception is if you for example use Disqus-comments, which are javascript-based and will load from the disqus server, even if your pages are cached on Cloudflare.

No, you would have to manually purge the cloudflare cache, every time you make new posts. You can choose to purge everything, or single url’s, from the Cloudflare dashboard.

Unfortunately, unlike caching static assets, caching website pages is dodgy business, especially for dynamic websites like Wordpress.

A third alternative would be to install the Cloudflare plugin for WordPress and set its “Automatic Cache Management” feature on. This will purge the cache for pages whenever there’s a new post or page, and purge everything whenever the theme is changed.

You may also want to read a couple articles about how Cloudflare caching works to understand the interaction between Browser Cache TTL and Edge Cache TTL and set your page rules according to your website needs.

1 Like

Caching more pages and setting up some option to flush the cache for the homepage when we add a new post every half hour would be quite helpful. Several pages change when we add a new post because our homepage uses pagination like page 2, page 3 and onwards till several hundred.

In our comment system a trigger to flush a page from cache if a comment is added there would help.

Is there any paid consultation or help available to set this up so we can cache more aggressively?

This topic was automatically closed after 30 days. New replies are no longer allowed.