Skip to content
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

Redis & Fork = no SSG #61

Open
jeremyvienney opened this issue May 27, 2021 · 1 comment
Open

Redis & Fork = no SSG #61

jeremyvienney opened this issue May 27, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@jeremyvienney
Copy link

jeremyvienney commented May 27, 2021

Hello guys !

In an attempt to polish my Statamic stack with better performances, I enabled redis for storing the stache and added the Spatie/fork package and start testing the generation with 4 workers.

Since I could not generate correctly my static files. It close everytime like this :
image

With a lot of this kind of errors in the way (I have around 600 files to generate) :
image

However, if I switch redis for "file" driver, everything works, even with multiple workers, I could then generate all my website in a minute :)

I tried to not use any worker but I had same exceptions. I had to completely remove the fork package in order to work.
So for resume :
Redis && Fork = SSG KO
Redis without Fork = SSG OK
File driver && Fork = SSG OK

Here is my details environments :

Statamic 3.1.17 Pro
Laravel 8.42.1
PHP 8.0.5
aryehraber/statamic-logbook 2.0.2
doublethreedigital/duplicator 1.3.2
rias/statamic-position-fieldtype 2.0.1
statamic/ssg 0.6.0
@riasvdv
Copy link
Contributor

riasvdv commented Oct 11, 2021

SSG probably needs to reconnect to Redis to have this work, an example with MySQL is provided in the Fork docs https://github.com/spatie/fork#using-before-and-after-in-the-child-task

@duncanmcclean duncanmcclean added the bug Something isn't working label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants