5 ms·
How do plugins like WP Super Cache https://wordpress.org/plugins/wp-super-cache/ https://wordpress.org/plugins/wp-super-cache/ compare with straight HTML pages?
by sosuke 12y ago
How do plugins like WP Super Cache https://wordpress.org/plugins/wp-super-cache/ https://wordpress.org/plugins/wp-super-cache/ compare with straight HTML pages? The extra overhead is in the PHP serving up the cached HTML page, but how effective is it in comparison? More of the static site development setups don't have an admin system that compares with WP, is there a WP plugin to export to a static site?
Edit: WP caching benchmarks http://cd34.com/blog/scalability/wordpress-cache-plugin-benchmarks/ http://cd34.com/blog/scalability/wordpress-cache-plugin-benc...
- jeffreyrogers 12y ago> is there a WP plugin to export to a static site? Here is one I found [1], I've never used it though, so I don't know how good it is. I'm sure there are others as well. It would be nice if there were a static site generator with an interface as nice as WP. [1]: https://github.com/megumiteam/staticpress https://github.com/megumiteam/staticpress
- ckluis 12y agoIt would be nice if wordpress itself had the option of pressing a button saying - push to static. When you make an edit -> update static files. This would be fantastically easier + it would potentially mean 1/4 of the web gets faster overnight.
- sogen 12y ago+1 oh man, that's a great idea, that would grow WP adoption rate by 1000x
- ckluis 12y agoIt literally couldn’t grow that much. It can only go from 1/4 of the web to 4/4 of the web. :)
- raziel2p 12y agoWhat makes you think that it would grow its adoption rate at all? If I were to take a guess, I'd say most Wordpress installations are done by people who don't care about server load, and don't fret out over a 2s load time instead of 200ms.
- tumba 12y agoIn fact, that was the way Moveable Type worked and was a dominant publishing tool before WordPress took off.
- sanderjd 12y agoWhy should it be a button, rather than having anything affected by a change automatically re-generated with cache control headers updated properly?
- ckluis 12y agoI was really meaning when you hit publish it would auto-reflow all the static pages. The great news is WordPress could come up with a static way of using javascript for things like sidebars so you wouldn’t necessarily have to repaint every page with every blog post. Something like call partial (list of recent blog posts) which itself could be static. Two-to-three static calls and you could have a very clean and robust system with no database queries.
- sfeng 12y agoUnfortunately you'd have to at least modify most WP plugins to get them to work with this new system. At some point it becomes easier just to try to move everyone over to a born-static platform like Ghost.
- michaelbuddy 12y agoModX - a PHP cms which is fairly popular has a static site exporter. I havent' played with modx in a while, hopefully it's still a feature since their many updates in the last 5 years.
- ryanSrich 12y agoYou're right about the admin part. There are hybrids out there like http://siteleaf.com http://siteleaf.com and http://webhook.com http://webhook.com. As far as no-db goes I like to use Kirby (http://getkirby.com http://getkirby.com). My favorite setup is middleman though. We built our documentation site using middleman and github sub modules (https://resources.catalyze.io https://resources.catalyze.io)
- andrea_sdl 12y agoWP Super Cache is a good starting point. Taken alone is not enough though. Most web shared hosting where custom wp are configured use Apache which doesn't solve the problem because apache (2.2, the 2.4 version should have improved a bit) spawns processes containing the PHP modules, therefore using more ram than it actually needs to process an html page. This issue is vastly solved if you have a Nginx webserver with a good configuration. You can also improve that if you use memcached and the nginx memcached_pass, which directly outputs the memcached cached html without passing through php, giving a super-boost to response times. (to use this feature, checkout the WP-FFPC plugin) If one page ends up on reddit/hackernews/producthunt homepage, a system designed like this should support the bump with relatively small issue. Obviously if many people start commenting you will still have performance issue because that's when the php part is called (and that's the most memory expensive).
- fredsted 12y agoIf you configure WP Super Cache correctly (e.g. rewrites), you won't be running any PHP when visiting the cached version of the site. So there's really no need to "export" anything.
- teleclimber 12y ago> is there a WP plugin to export to a static site? I came across this a little while ago: https://decoupled.de/ https://decoupled.de/