4 ms·
Most WP sites should be static sites.
by andai 5y ago
Most WP sites should be static sites.
- aritmo 5y agoAmen.
- freedomben 5y agoThose are orthogonal and not mutually exclusive. I have a couple wordpress sites that are static. There are a number of different ways to do it which range from Next.js with WP as a headless CRM (my current preference), or using a static site generator plugin inside of WP. I can recommend "Simply Static" as a handy plugin that (combined with nginx) will make as much of your site as possible static but still updates quickly and can allow some dynamism. But it does introduce complexity, and the more frequently the site changes the less it makes sense. As the site grows also most sites end up wanting dynamic stuff that often can't (or shouldn't) be done on the client-side, slowly making the static build less and less useful. It's just not that simple.
- ngrilly 5y agoYes, but you can still build a static site reading the content from a SQLite file instead of a directory of HTML files. That’s the beauty of SQLite: this is “just” a database library and file format.
- throw0101a 5y ago> Most WP sites should be static sites. https://wordpress.org/plugins/simply-static/ https://wordpress.org/plugins/simply-static/ https://wp2static.com https://wp2static.com
- testbjjl 5y agoWouldn’t that make managing tags and categories more difficult?
- mtlynch 5y agoIt's a little more difficult but not by much. On WordPress, you can change a tag, hit save, and the change is live. On a static site, the change would look more like: edit a file, rebuild the site, deploy to production. I left WordPress for static sites 8 years ago and never looked back. It's so nice to eliminate the database and web server from your stack and have everything under source control.
- rabite 5y agoOn my internal network servers I use wp-supercache to generate static pages on page visit, then I use a shell script that iterates through all possible article, rss, tag, and category pages with curl at varying intervals, forcing a cache build. In parallel I rsync all the images and statically built pages to my public edge. The public only gets to interact with content that is completely static and don't have php installed at all. It is easy enough, and the only real way to allow people to install whatever dumb wordpress plugins that they want on the internally installation without getting the sites owned all the time.
- innocenat 5y agoThis is assuming users are technical user, which isn't the case in most WP site.