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
Use other session handler #3428
Comments
Holy cow, yes - please add to docs! Was fumbling around until I found this…@boboldehampsink where did you even find docs for the Also answers this: craftcms/docs#94 |
If you want to run your queue also from redis:
|
Whoa I had no idea |
I've had an example up here for a bit too: https://github.com/nystudio107/craft/blob/master/config/app.php#L29 |
Haha guys, its actually just here in the docs: https://www.yiiframework.com/doc/guide/2.0/en/concept-behaviors#attaching-behaviors @timkelty does that prevent the craft_tasks table from being created? |
@boboldehampsink I swear I looked and couldn't find it…Way to read the manual!
Assuming you mean the Only hang up is you'll miss out of the front-end progress indicator, until myself or someone writes something for redis that implements |
Ah cool. That doesn't really bother me as I always run tasks from the command line in a separate worker node to keep load off of the web node. |
Same. But the front-end indicator can be nice so you know when something in the background is running, or when something failed. I'm not yet sure about the performance gains from avoiding the DB and using redis for queue, but it seems like a good idea. Some jobs end up with thousands of steps, each of which have to hit the DB to update the progress. |
There is no documentation on how to use a different session handler then
yii\web\Session
. Here's an example of how to use both the session handler and cache ofyiisoft/yii2-redis
with Craft 3:The text was updated successfully, but these errors were encountered: