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

Improve folder's cache error handling #1752

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

barijaona
Copy link
Member

Fix articles not being displayed when, for some reason, error messages "Bug retrieving for cache in folder …" appear in logs.

/* getArticlesAndCache
* Returns articles and store in cache if possible
*/
-(NSArray<Article *> *)getArticlesAndCache
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be split in to two functions:

  1. return the array of Articles (if there isn't already a function)
  2. cache the articles

The name getArticlesAndCache is a bit confusing, and I'd expect two objects returned: 1) array of articles, 2) a cache object

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cache object itself is self.cache
It's just a byproduct of the process that gets the content of the articles.
Updated version clarifies this.

Fix articles not being displayed when, for some reason, error messages
"Bug retrieving for cache in folder …" appear in logs.
@josh64x2 josh64x2 merged commit aee60da into ViennaRSS:master Jun 24, 2024
1 check passed
@barijaona barijaona deleted the cacheManagement branch June 25, 2024 06:09
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.

None yet

2 participants