[PR #1297] [MERGED] Change the frequency at which messages are prefetched #1416

Closed
opened 2026-02-25 21:38:13 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/cypht-org/cypht/pull/1297
Author: @mercihabam
Created: 10/23/2024
Status: Merged
Merged: 10/23/2024
Merged by: @mercihabam

Base: masterHead: change-prefetch-frequence


📝 Commits (1)

  • 596c2c8 Change the frequency at which messages are prefetched

📊 Changes

3 files changed (+22 additions, -52 deletions)

View changed files

📝 modules/core/site.js (+3 -3)
📝 modules/imap/js_modules/route_handlers.js (+13 -0)
📝 modules/imap/site.js (+6 -49)

📄 Description

Instead of prefetching the entire message list when the mailbox loads, these changes only prefetch the next and previous messages relative to the one currently displayed.

This is a workaround for the issue of the server processing multiple requests synchronously (as mentioned in #1279), which prevents it from handling further actions. This leads to high load times when message content is requested, especially when the mailbox is displayed for the first time with a large list of messages.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cypht-org/cypht/pull/1297 **Author:** [@mercihabam](https://github.com/mercihabam) **Created:** 10/23/2024 **Status:** ✅ Merged **Merged:** 10/23/2024 **Merged by:** [@mercihabam](https://github.com/mercihabam) **Base:** `master` ← **Head:** `change-prefetch-frequence` --- ### 📝 Commits (1) - [`596c2c8`](https://github.com/cypht-org/cypht/commit/596c2c8c79d1bbe4ba925a35621e399133a2eb3e) Change the frequency at which messages are prefetched ### 📊 Changes **3 files changed** (+22 additions, -52 deletions) <details> <summary>View changed files</summary> 📝 `modules/core/site.js` (+3 -3) 📝 `modules/imap/js_modules/route_handlers.js` (+13 -0) 📝 `modules/imap/site.js` (+6 -49) </details> ### 📄 Description Instead of prefetching the entire message list when the mailbox loads, these changes only prefetch the next and previous messages relative to the one currently displayed. This is a workaround for the issue of the server processing multiple requests synchronously (as mentioned in #1279), which prevents it from handling further actions. This leads to high load times when message content is requested, especially when the mailbox is displayed for the first time with a large list of messages. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 21:38:13 +03:00
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/cypht#1416
No description provided.