CuyZ / Valinor

PHP library that helps to map any input into a strongly-typed value object structure.

Home Page:https://valinor.cuyz.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ensure cache dirs are always present

simPod opened this issue · comments

From time to time after a fresh app deploy I encountered

CuyZ\Valinor\Cache\Exception\CacheDirectoryNotWritable
Provided directory /home/www/app/13925/var/cache/prod/Valinor/classes is not writable.

We should ensure those directories are always present on app cache warmup.

They are ultimately created but when there's higher app load, I presume some race condition occurs and this errors pops up before the dir is created.

Thanks for the report! Should be fixed by #407 which will be part of the next release. 😉