3 ms·
For those with WordPress installs who want to survive an HN frontpage: 1. if you don't have sudo, use the W3 Total Cache plugin http://wordpress.org/extend
by taylorbuley 14y ago
For those with WordPress installs who want to survive an HN frontpage:
1. if you don't have sudo, use the W3 Total Cache plugin http://wordpress.org/extend/plugins/w3-total-cache/
2. if you have sudo:
2a. the easy way: apt-get install memcached, add the pecl memcache extension, and use object-cache.php http://plugins.svn.wordpress.org/memcached/trunk/object-cache.php and batcache http://wordpress.org/extend/plugins/batcache/
2b. the hard way: varnish https://www.varnish-cache.org/ https://github.com/pkhamre/wp-varnish
- icelancer 14y agoUsing CloudFlare or Google Page Speed Service is also a good idea to further optimize!
- peterwwillis 14y agoOr: # /var/spool/cron/crontabs/apache */2 * * * * ( cd /var/www/htdocs && [ ! -e .mlan.lock ] && touch .mlan.lock && wget -q -O tmp.html http://www.mywebsite.com/blogs/my-long-article-name/ && mv -f tmp.html my-long-article-name.html && rm -f .mlan.lock ) Post HN story http://www.mywebsite.com/my-long-article-name.html http://www.mywebsite.com/my-long-article-name.html and it'll get refreshed every 2 minutes. Pretty simple hack. (Edit: add lock file)
- lucb1e 14y agorm -rf /var/www/wordpress FTFY