Cache improvements.
Merge remote-tracking branch 'origin/master'

Conflicts:
	util/DbTools.php