Compat: Fix commands in objects.cache file.

Refs #5328
Log commands and their arguments.

Fixes #5225