change cache for nova.version #6288
-
In telescope is noticed all these cache misses for 'nova.version'. After some searching i found that the version is being pulled directly from the composer file, because of this there is the next bit of code surrounding it. Cache::driver('array')->rememberForever('nova.version', function () {
//
} The result is every pageload misses and hits the cache (mostly one miss and one hit per request, and nova triggers a lot of requests). I like to propose a change. Because Nova requires Spatie\Once, maybe this can replace the cache, and also instead of using the composer.json to read the version, maybe this can be replaced with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Once v2 has a bug with caching scalar values such as |
Beta Was this translation helpful? Give feedback.
-
Released with Laravel Nova 5.0.0 Feel free to open up a new issue if you're still experiencing this problem on the latest version. |
Beta Was this translation helpful? Give feedback.
Once v2 has a bug with caching scalar values such as
string
. Which is the real reason we moved toCache
. This will be done once we remove support for PHP 7.x for Nova and remove support for Once v1 and v2.