cache: Yet another attempt to fix sqlite3 locking issues
Try to enable WAL mode in a loop, closing the connection each time we get a "database is locked" error to avoid deadlocks.
Try to enable WAL mode in a loop, closing the connection each time we get a "database is locked" error to avoid deadlocks.