[MEDIA][CACHE] Cache avatar queries and delete stale values; small refactoring

This commit is contained in:
Hugo Sales
2020-08-19 15:32:45 +00:00
committed by Hugo Sales
parent e3c5d7e5dc
commit 9649bec01e
4 changed files with 39 additions and 6 deletions

View File

@@ -238,7 +238,7 @@ class File extends Entity
],
'primary key' => ['id'],
'unique keys' => [
'file_file_key' => ['file_hash', 'actor_id'],
// 'file_file_key' => ['file_hash', 'actor_id'],
],
'indexes' => [
'file_filehash_idx' => ['file_hash'],