From bbcf9c00a54d979a476a096c2cf5b0eab84a364f Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 5 Jul 2023 16:45:47 +0200 Subject: [PATCH] :bug: Remove conditional cache handling from get-view-only-bundle rpc method The cond/etag handling is the cause of incorrect number of shared links returned by the endpoint. Because of incorrect cache invalidation. --- backend/src/app/rpc/commands/viewer.clj | 3 --- 1 file changed, 3 deletions(-) diff --git a/backend/src/app/rpc/commands/viewer.clj b/backend/src/app/rpc/commands/viewer.clj index ac6965555..e7db69ece 100644 --- a/backend/src/app/rpc/commands/viewer.clj +++ b/backend/src/app/rpc/commands/viewer.clj @@ -87,9 +87,6 @@ (sv/defmethod ::get-view-only-bundle {::rpc/auth false - ::cond/get-object #(files/get-minimal-file %1 (:file-id %2)) - ::cond/key-fn files/get-file-etag - ::cond/reuse-key? true ::doc/added "1.17" ::sm/params ::get-view-only-bundle} [{:keys [::db/pool]} {:keys [::rpc/profile-id] :as params}]