Konstruktionsplan's avatar

Limewire | Cache Problem

Hello.

After install livewire and build the searchbar like here: https://medium.com/@branick/search-with-laravel-livewire-cb6dcd4ad541

The /tmp/storage/bootstrap/cache directory must be present and writable.
0 likes
11 replies
Nakov's avatar

@konstruktionsplan running php artisan cache:clear will it fix the problem?

Make sure you have bootstrap/cache directory, if you don't then manually create it and give it a writable permissions.

Konstruktionsplan's avatar
php artisan cache:clear

Not working. :C The "bootstrap/cache" directory exists.

Nakov's avatar

Well not that evil locally, but don't do that on the server :D

And do you still get the same error?

1 like
Nakov's avatar

Hm, are you using windows ? Try to delete the cache folder and create it manually again..

dgrzyb's avatar

I was also having this problem, and realized that the config for manifest_path was pointing to the wrong directory. As you can see, /tmp/storage/bootstrap/cache doesn't exist for a fresh Laravel install on a local machine so it can't ever find it.

The solution is to publish the config with php artisan vendor:publish --tag=livewire:config and then change manifest_path to the appropriate path, mine being \bootstrap\cache\livewire-components.php.

Hope this helps!

1 like
eaglehdr's avatar

@dgrzyb I am sorry to revive this. but I did not wanted to create a duplicate post. I tried all of above solutions but my livewire view is being cached very hardly. I even completely emptied the file but it is sitl showing old code. if I delebrately break code in compoent file, it does show errors, but the view file is not reflecting any changes. tried cache:clear, manually removed cache folder, changed manifest_path ,etc. I am using Laragon in windows.

1 like

Please or to participate in this conversation.