Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix update date / Optimize cache #1875

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

barijaona
Copy link
Member

@barijaona barijaona commented Mar 11, 2025

@barijaona barijaona force-pushed the folderCache branch 3 times, most recently from 0ff2653 to 48cb06a Compare March 12, 2025 20:32
@barijaona barijaona changed the title Remove temporary locks on feed refresh / selecting feed Fix update date / Optimize cache Mar 12, 2025
@barijaona barijaona force-pushed the folderCache branch 2 times, most recently from 9af7535 to 67a2e43 Compare March 12, 2025 20:56
@barijaona
Copy link
Member Author

I apologize for multiple force pushes I have done to fix my errors.
The PR is stabilized now and is ready for reviews.

@barijaona barijaona marked this pull request as draft March 14, 2025 19:34
in `-updateArticle:ofFolder:withArticle:`, `existingArticle` may be an
incomplete version originating from `-minimalCacheForFolder:`, and may
therefore have neither `lastUpdate` nor `publicationDate`

To calculate the new last update date, we reproduce the date logic which
exists in -addArticle:toFolder:

Fix date 1.1.1970 or 31.12.1969 appearing in "Last Update" column
Issue ViennaRSS#1832
@barijaona barijaona force-pushed the folderCache branch 2 times, most recently from 750dded to 8710a06 Compare March 16, 2025 14:38
@barijaona barijaona marked this pull request as ready for review March 16, 2025 14:42
@barijaona barijaona marked this pull request as draft March 20, 2025 03:12
We avoid systematically resetting isCached status in order to allow
article addition (which requires ensureCache) to occur even when we try
to display the folder.

Also : remove @synchronize's which are redundant with
-getCompleteArticles' ones.
Lessen memory requirement: these enclosure informations will be required
(and retrieved from database) only when we display articles of folder.

Minimal cache is only used as a proxy marking if an article is (or isn't)
present in database, (un)read, (un)flagged, (un)deleted or revised.
As suggested by @TAKeanice's comment in issue ViennaRSS#1832
ViennaRSS#1832 (comment)

However, handle the case where the title of an article is changed, and
the updated article is pushed with a new publication date, while the
`guid` value reveals that it is in fact an update of a preexisting article.
Correct messages with last update date of 1.1.1970
@barijaona barijaona marked this pull request as ready for review March 20, 2025 04:35
@barijaona barijaona requested a review from TAKeanice March 20, 2025 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant