Skip to content

Commit

Permalink
GSvarServer: output more cache queries
Browse files Browse the repository at this point in the history
  • Loading branch information
ubuntolog committed Dec 17, 2024
1 parent a5277a7 commit 5853bc9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/GSvarServer/ServerController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,22 +296,20 @@ HttpResponse ServerController::locateFileByType(const HttpRequest& request)
db.updateFileLocation(found_file, request.getUrlParams()["type"].toUpper().trimmed(), locus, multiple_files, return_if_missing);

QJsonArray cached_array = cache_doc.array();
Log::error("cached_array.size() " + QString::number(cached_array.size()));
for (int index = 0; index < cached_array.size(); index++)
{
if (cached_array.at(index).isObject())
{
QJsonObject cached_object = cached_array.takeAt(index).toObject();
QString cached_filename = cached_object["filename"].toString();
Log::error("cached_filename = " + cached_filename);

if (!cached_filename.isEmpty())
{
cached_object.insert("filename", createTempUrl(cached_filename, request.getUrlParams()["token"]));
updated_cached_array.append(cached_object);
}
else
{
continue;
}
}
}
}

Expand Down

0 comments on commit 5853bc9

Please sign in to comment.