If I were you I wouldn’t try to make a slow site faster. That’s kinda pointless. Start with a site that is fast enough and try to make it even faster. So, first step is finding out why it is so slow. I would do the following:
- Create a new droplet (for testing purposes) and follow the Discourse setup instructions
- Don’t add any plugins yet. And no Cloudflare, Nginx etc
- Restore a backup of your production site
- Is it fast enough? Good.
- Add plugins
- Still fast? Good. If not, try to find the plugin that’s slowing it down.
- Add Nginx in front of it for all the PHP stuff
- Still fast? Good. If not, try something else, like
- try finding out why Nginx makes it slow
- or running Nginx on a private port for the PHP stuff and trying to put HAProxy in TCP mode in front of Discourse and your Nginx
- Start using a CDN for static assets or full site CDN – see links in my last post and read those topics carefully. Cloudflare needs special treatment (a template in
app.ymletc.) and don’t use Rocket Loader or anything like that.