Improving how action types are inserted into db, so that we capture any not present in an existing table. Improved debug/logged info for cache actions