Restore query cache on rollback