3 years ago

Laravel caching error - file_put_content file not found

Posted 3 years ago by benshepherd

I have this really strange error that I'm struggling to figure out.

I have a command that will cache the homepage. If I run cache:clear then command:updateCaches

And then try and load the site it tells me

file_put_contents(/home/sites/ failed to open stream: No such file or directory (View: /home/sites/

Its like being logged out causes the error. Except, I can cache the first time without being logged in via my browser and that works no problem.

Here is HomeController.php

I don't expect anyone to figure it out, just an idea why it might be going wrong. Any help would appreciated though.

Please sign in or create an account to participate in this conversation.