-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fusion ParserCache crashes when generated value is not a FusionFile #4595
Comments
Not 100% sure what would be the correct solution here. Even if the main issue is somewhere else, we have to check the type. |
A little peace offering: #4839 |
Is this possibly related? neos/flow-development-collection#3284 Edit sorry no i thought the above happened with redis but seb negated this |
How and why? |
I don't think so, this is a rather special case and should show up as such in the log. |
Is why I almost never use "has" in caches, it is never atomic, you cannot know what happens between has and get. I prefer
|
> This should not be considered an error. It's a cache, things can happen, it should be able to deal with this. That's why get will be used directly instead of has. In the rare edge-case of a fusion dsl returning `false` we cannot cache it anymore. This is an acceptable compromise.
> This should not be considered an error. It's a cache, things can happen, it should be able to deal with this. That's why get will be used directly instead of has. In the rare edge-case of a fusion dsl returning `false` we cannot cache it anymore. This is an acceptable compromise.
> This should not be considered an error. It's a cache, things can happen, it should be able to deal with this. That's why get will be used directly instead of has. In the rare edge-case of a fusion dsl returning `false` we cannot cache it anymore. This is an acceptable compromise.
Should be fixed via #4839 |
In
neos-development-collection/Neos.Fusion/Classes/Core/Cache/ParserCache.php
Line 65 in 6fcba54
mixed
value and doesn't check if the value is actually aFusionFile
.That leads to a crash when the generated value is
false
due to some other issue with the composer state or stale file cache.The text was updated successfully, but these errors were encountered: