Sunday, May 26, 2019

New comment by cmdr2 in "Static Web – Back to the Roots"

I tried this last year for a Wordpress blog with ~1000 articles, and the time to generate the static pages was too long (several minutes) even for routine tasks like adding a new article. Simple things like a "New Articles" list in the sidebar can cause all pages to regenerate. I tried many different approaches (recursive wget, wordpress plugins, intercept wordpress output in PHP with ob_start() etc).

Ultimately, putting a Varnish cache seemed like the only logical answer to speed things a bit more, but that didn't avoid Wordpress security attacks.

For fun though, I built an experimental wordpress-clone dashboard that saved Hugo-compatible files instead, so I wouldn't miss Wordpress' editing features. The result was superb (<5 seconds to regenerate the ~1000 articles blog), but I missed the Wordpress plugins too much to switch to Hugo entirely.

But I still agree with you: "keep wordpress' editing experience, but generate static sites" is a pretty promising direction IMO.



from Hacker News - New Comments: "WordPress" http://bit.ly/2HUcLbk
via IFTTT

No comments:

Post a Comment

Marvel Characters

Article URL: https://marvelcharacters.net Comments URL: https://news.ycombinator.com/item?id=46839913 Points: 1 # Comments: 0 from Hac...