3 ms·
I run a bunch of both. Many sites don't need to be dynamically generated - they just need to provide some text and pics or whatever. Some bonuses with non-dyn
by stevenicr 5y ago
I run a bunch of both.
Many sites don't need to be dynamically generated - they just need to provide some text and pics or whatever.
Some bonuses with non-dynamic - no worries if a php update fails - no worries if some other server side thing is broken - just serve files - no thinking.
Less worries about cpu overload - like having a dozen wordpres sites on a box - you can run into problems if one of those sites is getting hammered by login requests or similar - even if you 100% prevent them from logging in - you are still eating up php and what not which may affect your other dynamically generated sites on the server more than some static files that need to be pushed.
Of course you are right in that modern CDNs and cacheing make much of what used to be bigger problems more trivial in general..
A single site on a VPS less likely to be of concern compared to shared hosting or a dedicated box with several sites - in my experience - situations vary.