mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
fix: renew HTTP cache entry if it already exists
This commit is contained in:
@@ -120,7 +120,7 @@ async fn http_cache_put(context: &Context, url: &str, response: &Response) -> Re
|
|||||||
context
|
context
|
||||||
.sql
|
.sql
|
||||||
.insert(
|
.insert(
|
||||||
"INSERT OR IGNORE INTO http_cache (url, expires, blobname, mimetype, encoding)
|
"INSERT OR REPLACE INTO http_cache (url, expires, blobname, mimetype, encoding)
|
||||||
VALUES (?, ?, ?, ?, ?)",
|
VALUES (?, ?, ?, ?, ?)",
|
||||||
(
|
(
|
||||||
url,
|
url,
|
||||||
|
|||||||
Reference in New Issue
Block a user