mod_storage_sql: Skip cache write
This would cause the cache to be wrong in case the the later INSERT
fails and the transaction is aborted.
--- a/plugins/mod_storage_sql.lua Fri Mar 22 02:10:46 2019 +0100
+++ b/plugins/mod_storage_sql.lua Fri Mar 22 02:12:02 2019 +0100
@@ -282,7 +282,6 @@
local result, err = engine:delete(delete_sql, host, user or "", store, key);
if result then
item_count = item_count - result:affected();
- archive_item_count_cache:set(cache_key, item_count);
end
else
key = uuid.generate();