'Laravel send email with error mkdir() : too many links

Our website is sending about 2000 emails to our customer daily, recently, it started to fail sending the email with the error message "mkdir() : too many links" .

The website is build with laravel framework and we are using the laravel Mail class to send the email.

Initially, when this error occur, we are able to solve it by clearing the laravel cache with the command php artisan cache:clear. The laravel CACHE_DRIVER is using file.

We tried to change it to use REDIS, and it works , however it didn't last long until the error mkdir() : too many links come back again.

How can we resolve this issue long term?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source