summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-05-12 11:14:34 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-06-28 21:12:46 +0200
commita1a5cc15fb7e3aeacef68c3cfdfc1685f6cb4d1a (patch)
tree90b269bef438b0bf59bdd97a677c37703780fe50
parent49bc8faced7c5d97fd066f65524a0cf8ba257c66 (diff)
fix: remove now unneeded tags-count initial state
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--lib/Controller/PageController.php14
-rw-r--r--src/components/TagCover.vue1
-rw-r--r--src/views/Tags.vue1
3 files changed, 0 insertions, 16 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php
index 9f3f92ef..9a32472e 100644
--- a/lib/Controller/PageController.php
+++ b/lib/Controller/PageController.php
@@ -149,20 +149,6 @@ class PageController extends Controller {
$this->initialState->provideInitialState('nomedia-paths', $paths);
-
- $key = $user->getUID();
- $tagCounts = $this->tagCountsCache->get($key);
- if ($tagCounts === null) {
- $tags = $this->tagManager->getAllTags(true);
- $tagCounts = [];
- foreach ($tags as $tag) {
- $search = $userFolder->search(new SearchQuery(new SearchComparison(ISearchComparison::COMPARE_EQUAL, 'systemtag', $tag->getName()), 0, 0, [], $user));
- $tagCounts[$tag->getName()] = count($search);
- }
- $this->tagCountsCache->set($key, $tagCounts, 60 * 60 * 24 * 7); // 7 days
- }
- $this->initialState->provideInitialState('tag-counts', $tagCounts);
-
Util::addScript(Application::APP_ID, 'photos-main');
if ($this->appManager->isEnabledForUser('recognize') === true) {
diff --git a/src/components/TagCover.vue b/src/components/TagCover.vue
index 1be0c2b0..ebaa3215 100644
--- a/src/components/TagCover.vue
+++ b/src/components/TagCover.vue
@@ -74,7 +74,6 @@ export default {
return {
loadCover: false,
observer: null,
- tagCounts: loadState('photos', 'tag-counts'),
}
},
diff --git a/src/views/Tags.vue b/src/views/Tags.vue
index 62bbf80d..7d46ac74 100644
--- a/src/views/Tags.vue
+++ b/src/views/Tags.vue
@@ -70,7 +70,6 @@ export default {
error: null,
loading: false,
showTags: false,
- tagCounts: loadState('photos', 'tag-counts'),
}
},