Issue #2880213 by sb56637: Do not allow root PHP CLI to create files or directories. Updated checks in filecache_cron().