]> git.immae.eu Git - github/wallabag/wallabag.git/commit
EntryRestController::getEntriesExistsAction: always find by hashed url
authorOlivier Mehani <shtrom@ssji.net>
Thu, 2 May 2019 11:19:20 +0000 (21:19 +1000)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 24 May 2019 13:17:45 +0000 (15:17 +0200)
commit31e276fc1636b41b03b7c29127681de257c16b06
tree7858796dcd094b5a61b38ddd3b7d84f5ea880b17
parent65b495e75b1d36894dd18133d3bf967a74e0b8de
EntryRestController::getEntriesExistsAction: always find by hashed url

Simplify the logic from #3158 by hashing all the urls from the request,
and only doing a search by hash. This allows to get performance benefits
from the new indexed hash column even when using older clients that do
not hash the URL in the request.

Fixes: #3158, #3919
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
src/Wallabag/ApiBundle/Controller/EntryRestController.php