This is what caching plugins do.
Yes true. however, the plugins option increases the number of codes and requests. My suggestion is to change “the path” saving labor and time. it would be a native optimization.
You really think you could code this more efficiently and test it more thoroughly than you’d find in a highly used caching plugin?
You might take a look at WP2Static…
https://wordpress.org/plugins/static-html-output-plugin/
There are also people running lashups of HTtrack to webservers to serve up static sites.
Do pay attention to the limitations of static pages. It’s not always the best approach.
A reverse proxy might be a better choice. Some webhosts place reverse proxies in front of their web servers to reduce the load on their hardware. If your web host doesn’t offer that then you might look at building one yourself. Nginx seems to provide a great proxy system but running a separate server just to proxy one website is probably way overkill.
A cache plugin like W3Total (my favorite) is probably the best ‘bang for the buck’.
There’s another choice for servers that aren’t already overloaded…
https://www.cloudflare.com/
Cloudflare takes over the DNS services for your domain immediately with one of the best DNS systems out there relieving your webserver from that duty and load. Cloudflare then attempts to proxy your website via their network.
The only problem with the free Cloudflare proxy service level comes about if your host isn’t able to respond to Cloudflare fast enough.
-
This reply was modified 2 years, 5 months ago by
JNashHawkins.