[GH-ISSUE #886] [BUG] Performance issues because of lots of session files #551

Closed
opened 2026-02-25 20:36:01 +03:00 by kerem · 4 comments
Owner

Originally created by @PrivacyDevel on GitHub (Nov 21, 2022).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/886

Describe the bug
Whoogle creates an excessive amount of session files in app/static/config/session.
Over time this leads to high cpu usage and very long loading times.
These sessions files should probably automatically get deleted after a certain period of time.

To Reproduce

  1. Create a public Whoogle Search instance and leave it running for a long time
  2. Experience very long loading times and high cpu usage

Deployment Method

  • Heroku (one-click deploy)
  • Docker
  • run executable
  • pip/pipx
  • Other: [describe setup]

Version of Whoogle Search

  • Latest build from [source] (i.e. GitHub, Docker Hub, pip, etc)
  • Version 0.7.4
  • Not sure
Originally created by @PrivacyDevel on GitHub (Nov 21, 2022). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/886 **Describe the bug** Whoogle creates an excessive amount of session files in app/static/config/session. Over time this leads to high cpu usage and very long loading times. These sessions files should probably automatically get deleted after a certain period of time. **To Reproduce** 1. Create a public Whoogle Search instance and leave it running for a long time 2. Experience very long loading times and high cpu usage **Deployment Method** - [ ] Heroku (one-click deploy) - [ ] Docker - [x] `run` executable - [ ] pip/pipx - [ ] Other: [describe setup] **Version of Whoogle Search** - [ ] Latest build from [source] (i.e. GitHub, Docker Hub, pip, etc) - [x] Version 0.7.4 - [ ] Not sure
kerem 2026-02-25 20:36:01 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@benbusby commented on GitHub (Nov 22, 2022):

I believe this is fixed in 32ad39d0e1, which will be included in the next release. I'll push a new release this week that you can start using instead of 0.7.4.

<!-- gh-comment-id:1324360986 --> @benbusby commented on GitHub (Nov 22, 2022): I believe this is fixed in 32ad39d0e1529818289444d0352e1bf16beef400, which will be included in the next release. I'll push a new release this week that you can start using instead of 0.7.4.
Author
Owner

@PrivacyDevel commented on GitHub (Nov 23, 2022):

Ok, thank you! Btw. just a quick question, if you plan to push a new release, has the broken paging been fixed already? There has been an issue sometime after the 0.7.4 release that caused all result pages but the first one to break. Those pages showed no results anymore and the search query in the search box was replaced by some base64 encoded looking string.

<!-- gh-comment-id:1324446201 --> @PrivacyDevel commented on GitHub (Nov 23, 2022): Ok, thank you! Btw. just a quick question, if you plan to push a new release, has the broken paging been fixed already? There has been an issue sometime after the 0.7.4 release that caused all result pages but the first one to break. Those pages showed no results anymore and the search query in the search box was replaced by some base64 encoded looking string.
Author
Owner

@benbusby commented on GitHub (Nov 23, 2022):

@PrivacyDevel Yep, that should be fixed as well, by the same commit that I referenced. The previous library that was being used for session management was also erroneously regenerating user sessions prematurely, causing queries to not decrypt in between result pages (hence the encoded string you noticed).

<!-- gh-comment-id:1325505982 --> @benbusby commented on GitHub (Nov 23, 2022): @PrivacyDevel Yep, that should be fixed as well, by the same commit that I referenced. The previous library that was being used for session management was also erroneously regenerating user sessions prematurely, causing queries to not decrypt in between result pages (hence the encoded string you noticed).
Author
Owner

@benbusby commented on GitHub (Nov 23, 2022):

Just pushed 0.8.0, so I'm gonna close this now.

<!-- gh-comment-id:1325555542 --> @benbusby commented on GitHub (Nov 23, 2022): Just pushed 0.8.0, so I'm gonna close this now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#551
No description provided.