I just rebuilt the data folder on the dev machine as a fresh copy of the production data, and now "purge all caches" works correctly; the error is gone.
So something in the data folder, not within the cache or localcache folders, seems to have caused the problem. I had searched all recent files in the data folder for any references to "time_last_message_between_users" and found none.