Optimize generate_questions: word cache + gunicorn timeout 300s

- Cache all words globally across levels (avoids 500+ Directus calls)
- Add Procfile with --timeout 300 to prevent gunicorn killing long requests

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-26 10:27:12 +02:00
parent 0360bcd1e6
commit 2755632524
2 changed files with 35 additions and 41 deletions

1
Procfile Normal file
View File

@@ -0,0 +1 @@
web: gunicorn app:app --bind 0.0.0.0:8000 --timeout 300 --workers 2