Jetpack stats and caching strategy [closed]

Let me quote what’s mentioned in the official FAQ of WordPress.com Stats plugin (JetPack statistics module uses this plugin as the base)… The plugin collects stats via a javascript call, so as long as the JS call is on the page stats will be collected just fine, whether the page is cached or not. In … Read more

Nginx redirect one path to another

Direct quote from Pitfalls and Common Mistakes: Taxing Rewrites: By using the return directive we can completely avoid evaluation of regular expression. Please use return instead of rewrite for permanent redirects. Here’s my approach to this use-case… location = /content/unique-page-name { return 301 /new-name/unique-page-name; }

How to debug failed changes to posts?

I was finally able to get this to work by using php5-fpm instead of php5-cgi. First I removed the php5-cgi package via sudo apt-get autoremove –purge php5-cgi Then I installed php5-fpm via: sudo apt-get install php5-fpm After tweaking my server definition in Nginx a bit, the problem went away. Update I suspect this had more … Read more