Make shard-friendly clear_query_cache implementation less convoluted
Shard-friendly implementations of clear_{active/all}_connections!
Merge pull request #214 from nickmarden/nick/clear_connections

Make it possible to clear connections correctly