# HG changeset patch # User Kim Alvefur # Date 1553217122 -3600 # Node ID 147b28d001a06fddaf84bbdbd2a883bc358799ef # Parent b5ac12f97f342fbc3ade7a8863cc666eb1d39757 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. diff -r b5ac12f97f34 -r 147b28d001a0 plugins/mod_storage_sql.lua --- 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();