Work with Caches in Customized Workflows

Do not update any row in the database from the custom code because this can cause the cache to be out-of-sync.

The caching algorithm and objects stored in the cache often change to fine tune the cache. Additionally, updates may create deadlocks.