Comments (4)
This will be fixed on the next release, next week.
from octane.
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:
- consider using a different type of cache
- increase the default size of the Octane cache per item
- define and use a separate Swoole Table for the larger items
I suspect your initial exception occured because the data was truncated during insert.
from octane.
I have the same problem, how can I fix it ?, I tried to increase the bytes and row but it doesn't work.
from octane.
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.
try {
return unserialize($record['value']);
} catch (Throwable $e) {
report($e);
return null;
}
from octane.
Related Issues (20)
- Error starting octane server swoole HOT 1
- Error PHP 8.3.3 10.46.0 Undefined constant "FTP_BINARY" HOT 2
- gmp and imagick and other extensions not loaded HOT 1
- Using Octane cause an issue with repeater fields from Laravel Nova HOT 1
- Error Too few arguments to function Illuminate\Cache\CacheManager::repository() HOT 2
- Octane does not call close() on Monolog Handler HOT 2
- Octane doesn't drop connections after docker container stopped HOT 4
- Bug: Target [Illuminate\Contracts\Routing\ResponseFactory] is not instantiable while building [Illuminate\Routing\ViewController]. with Breeze / Livewire HOT 16
- Fatal error with Swoole on a PUT request with application/x-www-form-urlencoded content type HOT 1
- Undefined array key "assets" HOT 4
- Invalid signature error with temporary signed routes HOT 1
- Loses communication with worker when using `dump()` HOT 4
- Swoole in HTTP/2 mode is incompatible with chunking large responses in `SwooleClient` HOT 1
- RoadRunner can't communicate with the worker HOT 20
- Octane fwrite no space on disk disable logging HOT 2
- SwooleHttpTaskDispatcher and Http::preventStrayRequests() HOT 3
- No documentation for custom HTTP headers? HOT 1
- Octane + FrankenPHP + Sail, stuck in "Application change detected. Restarting workers" HOT 11
- Thread support from Swoole HOT 1
- Maximum execution time exceeded HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octane.