DB error: Already Exists
While it's hard to tell without the entire error message it looks like given that the query appears to be an update to a cache table I'd recommend clearing your caches. 

drush cc all or via /civicrm/admin/setting/updateConfigBackend?reset=1