Do not attempt to write to cache in CLI calls
Avoid array to string conversion warning