mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-26 01:05:52 +03:00
[PR #1460] [MERGED] Fix nginx-ui issue 1455 #8425
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#8425
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/0xJacky/nginx-ui/pull/1460
Author: @0xJacky
Created: 11/29/2025
Status: ✅ Merged
Merged: 11/29/2025
Merged by: @0xJacky
Base:
dev← Head:cursor/fix-nginx-ui-issue-1455-gpt-5.1-codex-high-079c📝 Commits (1)
8e9fa7dRefactor: Improve incremental log indexing logic📊 Changes
2 files changed (+151 additions, -10 deletions)
View changed files
📝
internal/cron/incremental_indexing.go(+43 -10)➕
internal/cron/incremental_indexing_test.go(+108 -0)📄 Description
Fixes #1455 by using per-file persisted metadata for incremental indexing decisions to prevent unnecessary re-indexing caused by aggregated log sizes.
The previous incremental indexing logic could incorrectly trigger re-indexing due to
log.LastSizebeing an aggregated value across rotated log files (e.g.,access.logandaccess.log.1). This led to false positives where the system believed a file had shrunk or grown, causing infinite rebuilds. This PR injects the actualPersistenceManagerto use accurate per-file metadata forLastModifiedandLastSize, ensuring indexing only occurs when truly needed. A fallback mechanism is also included for cases where persistence data isn't available, clamping theLastSizeto prevent similar issues.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.