Some changes to cache & basic designdoc