[PR #1252] [MERGED] Improve messages caching to ensure a message isn't fetched more than once when viewing its content #1379

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

📋 Pull Request Information

Original PR: https://github.com/cypht-org/cypht/pull/1252
Author: @mercihabam
Created: 9/24/2024
Status: Merged
Merged: 9/30/2024
Merged by: @kroky

Base: masterHead: enh-perf


📝 Commits (6)

  • ce1bf6f WIP: Improve messages caching to ensure a message doesn't get fetched more than once when viewing the content
  • 30707e2 Ensure that prefetching messages does not flag them as seen and instead call the "read" action on a particular message when it is opened
  • 6094214 WIP: Implement a message store object for an explicit and better messages caching
  • 692d5fa Instant updating of the messages unread count when a message is updated and fetch siblings of a message from the store for displaying the next and prev links
  • 30fbe06 Ensure the config "unread_on_open_setting" is not overlooked when opening a message
  • 63ebbfa Fix unit tests

📊 Changes

9 files changed (+326 additions, -109 deletions)

View changed files

📝 modules/core/output_modules.php (+5 -0)
📝 modules/core/site.js (+27 -20)
📝 modules/imap/handler_modules.php (+1 -0)
📝 modules/imap/hm-imap.php (+3 -3)
modules/imap/js_modules/Hm_Message.js (+172 -0)
📝 modules/imap/output_modules.php (+1 -0)
📝 modules/imap/setup.php (+1 -0)
📝 modules/imap/site.js (+115 -85)
📝 tests/phpunit/modules/core/output_modules_debug.php (+1 -1)

📄 Description

https://github.com/cypht-org/cypht/issues/1144


🔄 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/1252 **Author:** [@mercihabam](https://github.com/mercihabam) **Created:** 9/24/2024 **Status:** ✅ Merged **Merged:** 9/30/2024 **Merged by:** [@kroky](https://github.com/kroky) **Base:** `master` ← **Head:** `enh-perf` --- ### 📝 Commits (6) - [`ce1bf6f`](https://github.com/cypht-org/cypht/commit/ce1bf6f8e71bc7f163af95b9b8f498331a3fdcf1) WIP: Improve messages caching to ensure a message doesn't get fetched more than once when viewing the content - [`30707e2`](https://github.com/cypht-org/cypht/commit/30707e20e7d51b29d94e9bd9d5a1d529bcfb683e) Ensure that prefetching messages does not flag them as seen and instead call the "read" action on a particular message when it is opened - [`6094214`](https://github.com/cypht-org/cypht/commit/6094214ae209c7ee853f49673e720e0317d94ecb) WIP: Implement a message store object for an explicit and better messages caching - [`692d5fa`](https://github.com/cypht-org/cypht/commit/692d5fa5d3ead0830c1c2301fcaeed71ea29da47) Instant updating of the messages unread count when a message is updated and fetch siblings of a message from the store for displaying the next and prev links - [`30fbe06`](https://github.com/cypht-org/cypht/commit/30fbe06ef76682d078e936f1f5b74ef5319167d3) Ensure the config "unread_on_open_setting" is not overlooked when opening a message - [`63ebbfa`](https://github.com/cypht-org/cypht/commit/63ebbfaeeb755a0dcdab8cc9648574fb6e781eba) Fix unit tests ### 📊 Changes **9 files changed** (+326 additions, -109 deletions) <details> <summary>View changed files</summary> 📝 `modules/core/output_modules.php` (+5 -0) 📝 `modules/core/site.js` (+27 -20) 📝 `modules/imap/handler_modules.php` (+1 -0) 📝 `modules/imap/hm-imap.php` (+3 -3) ➕ `modules/imap/js_modules/Hm_Message.js` (+172 -0) 📝 `modules/imap/output_modules.php` (+1 -0) 📝 `modules/imap/setup.php` (+1 -0) 📝 `modules/imap/site.js` (+115 -85) 📝 `tests/phpunit/modules/core/output_modules_debug.php` (+1 -1) </details> ### 📄 Description https://github.com/cypht-org/cypht/issues/1144 --- <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:05 +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#1379
No description provided.