Categorías
Tecnología Actualizaciones

¡Arreglar WordPress y cambiar a OpenLiteSpeed!

My website was mostly snappy from the user side, but the back-end functions design, write, save were very slow. It took between 6 and 12 + seconds per page load. Even with small changes, this slowly adds up as a switch to OpenLiteSpeed was next! Especially if your edits were not saved and you start to save your edits again and again somewhere else.

Time to Troubleshoot

  • Switched themes from Total to GeneratePress (ultra-light theme) – Issue continued
  • Got rid of WP Rocket (caching plugin) – Issue continued
  • Tried out Statically.io (CDN) – Issue continued
  • Got rid of RankMath (seo tools) – Issue continued
    I found RankMath was running code slowly, however I think the underlying issue was making matters worse on RankMaths code.
  • Ran a DB repair – Issue continued
  • Ran a DB optimization – Issue continued
  • Enabled Redis (caching server)- Issue continued
  • Verified that the server was running the latest version of PHP – Issue continued
  • Increased the WordPress memory limit – Issue continued
  • Reduced how much content is displayed in the WordPress Admin – Issue continued
  • Disabled unused dashboard widgets in the WordPress Admin – Issue continued
  • Disabled Cloudflare from caching my website on their end – Issue continued

My website was hosted in Las Vegas but because I use Cloudflare, it is hosted all over the world so that location shouldn't matter as much.

  • Migrated a full backup to a beefier VPS (2 CPU, 4096MB, 80GB SSD) – Issue continued
    I had two different trains of thought… either go big or go home, or remain the same resource-wise. This helped me determine that there wasn't anything necessarily wrong with my web hosting but something with my WordPress installation.

How could this not fix the issue? It didn't even band-aid the issue but continued to load about just as slow as it did with the original virtual server.

  • Installed a fresh copy of WordPress, restored the database and media content – SUCCESS!

Website is loading faster than ever! Also, editing and navigating the admin pages are lighting quick now. .5-2 seconds tops.

Without Cloudflare

keycdnperfwithoutcf cropped | graydonschwartz.com
Ignoring whatever happened in Sydney during this test because I was making a lot of changes.

With Cloudflare

keycdnperfwithcf cropped | graydonschwartz.com
Fixing WordPress and Switching to OpenLiteSpeed! 7

Resolution?

So, sometimes upgrading isn't always the best solution if you have an underlying fundamental issue with your installation of WP. At least that is what I found in my situation.

Next, I want to try re-installing the original VPS and restore the working backup from the beefier setup and see if the problem returns.

Fix 404 errors on Posts and pages

Getting 404 errors now that you have everything restored back onto your OpenLiteSpeed webserver? Get this fixed by deleting the .htaccess file and restarting the webservice. It should be good to go!

The last thing I did now was reset my original origin server back to a factory image and performed a restore of my website with WPvivid's Backup Plugin (from the test server data). Now all is well! Something must have been up within a random WordPress core file because the database went unchanged through this process.

Later on After the SSL Cert Settled Down

keycdnperfwithcflateron | graydonschwartz.com
TLS was on the frits before in the other screenshots so here it is again a day later. As you can also see the response times change quite a bit between tests.

Big Thanks for These Services, Tools & Articles

Plugin de copia de seguridad de WPvivid | WordPress Plugin | This plug-in has the ability to do ‘site to site transfers' and doesn't require spending any monies. It really makes the process easy!

Vultr.com | Fast SSD VPS Cloud Servers.‎ Great for quick testing for litte $$$.

Download Google Drive Files using wget | Used these instructions to download backups from Google Drive with the wget command.

Query Monitor | This tool helps you find resource heavy plugins throughout your website.

SSL Server Test by Qualys, Inc.

KeyCDN | Website Speed Test

Feature Photo Credit

Photo by Luca Bravo on Unsplash

Agradecimiento especial

TESMAT en el Supercargador de Tesla

TESMAT

TESMAT podría ser el colchón adecuado para su próxima siesta en el Supercargador, su viaje de acampada en coche o el regalo perfecto para su propietario favorito del Tesla Model 3/Y. Puedes usar mi código de cupón para ahorrar en tu compra.

Más información:

logo luminar neo para fondos claros actualizado | graydonschwartz.com

Luminar Neo

Utilice el botón de abajo y no dude en utilizar el código de descuento (GRAYDON) para darse un descuento dulce en el momento de la compra en Luminar:

Es posible que gane una pequeña comisión por mi aprobación, recomendación, testimonios y/o enlaces a productos o servicios enlazados arriba. Tu compra me ayuda a ofrecerte más fotografías, guías de viaje y más viajes alrededor del mundo.

Por Graydon Schwartz

Más información sobre Graydon en el Sobre mí página.