-
Notifications
You must be signed in to change notification settings - Fork 280
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
unserialize(): Error at offset 10000 of 10000 bytes #173
Comments
The Octane cache is based on a Swoole Table, in case you are using the Swoole server. The cache is limited to 1000 rows with 10.000 bytes each by default: Lines 125 to 139 in 9faedfb
For larger items, you might want to:
I suspect your initial exception occured because the data was truncated during insert. |
I have the same problem, how can I fix it ?, I tried to increase the bytes and row but it doesn't work. |
This is an issue that needs to be worked around. You can set an entry to the swoole table that is larger the it can contain and we don't get a false back from $this->table->set() in the put method. It thinks it added it correctly. This would probably be something that swoole needs to address. The problem on the octane side is that we are failing to handle the unserialize error on the get method. The data is corrupted, it should be handled in some way. Report the error (maybe a more friendly message...) and return null as if the record was not found would seem like a logical workaround for the get method.
|
This will be fixed on the next release, next week. |
Description:
I just changed my default cache driver to octane and i got the following error:
Looks like it have problem with Eloquent\Collection, if the data is big, it cannot cache it:
The text was updated successfully, but these errors were encountered: