Add triggerupdate command
Reduce cache locking failure probability
Update logging
Add __repr__ for models