Wordpress to Octopress
Why you may ask? Performance!
To facilitate running wordpress on the smalest possible CloudServer I am using Varnish which using Apache as the backend, now with static files I can get all the blogging functionality without the need for Wordpress nor varnish, yet still uncached content can lead to increased load on the server.
Also wordpress does not lend itself to scalability especially with the at the time of writing schema and sql queries (percona-query-advisor flags up a few wordpress core sql queries as non scalable).
But this does not mean you need remove the option of using Wordpress, for you client for instance keeping wordpress in place can aid in content generation simply through ease of use.
- wordpress used as normal
- wordpress content is ported to markdown
- markdown used to generate html
Now this does have caveats:
- you’re going to need to maintain designs in wordpress templates and markdown (_layouts).
- you’re going to need to handel any shortcode plugins in your export process.
- you’re going to need to handel any other content modifying plugins in your export process.
- any UGC / Dynamic requests will still need PHP.
But it essentially replaces the whole caching layer with static content which then can be pushed to CDN.
Now don’t get me wrong, this requires a whole lot of “glue” to get working, but the potential for serving an entire web app from CDN without Origin pull / cache headers etc, saves a lot of systems time in scaling and adressing performance issues, or rather makes them “less critical” as the “business” part of the webapp is all on CDN.
I’m still getting to grips with Jekyll and by extention Octopress to see what it can achieve, so expect more posts.