-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
FileCache data can not be shared over web and cli #17365
Comments
I guess the problem was caused by
|
What would it give you if you'll remove |
Also try updating to latest release of the framework. |
It has been 2 or more weeks with no response on our request for more information. If you want it to be reopened again, feel free to supply us with the requested information. Thanks! This is an automated comment, triggered by adding the label |
Yeah, even more: I've got
because $error = error_get_last(); // => null
Yii::warning("Unable to write cache file '{$cacheFile}': {$error['message']}", __METHOD__); Here is the proposed solution: $message = "Unable to write cache file '{$cacheFile}'";
if ($error = error_get_last()) {
$message .= ": {$error['message']}";
}
Yii::warning($message, __METHOD__); |
@xcopy do you have time to do a pull request? |
Yes, sure. |
… value of `error_get_last()` can be `null` yiisoft#17365
I cleared all file cache before, then I set a cache via web, wait it until expired, and then I set the same key cache via cli, I got failed.
I got
bool(false) bool(true)
same code was copied to command dir
I got the result:
conclusion: cache can not be set!
Additional info
The text was updated successfully, but these errors were encountered: