All individual subscriptions are 50% off this week only!

benshepherd
2 years ago
220
5
Laravel

Laravel caching error - file_put_content file not found

Posted 2 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/staff.habbocreate.com/storage/framework/cache/data/80/b6/80b69166730ee957730d0770e96781dbd90ae953): failed to open stream: No such file or directory (View: /home/sites/staff.habbocreate.com/resources/views/frontend/home.blade.php)

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 https://pastebin.com/P1uNNWEs

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.