Skip to content

Add caching functionality#270

Merged
Builditluc merged 27 commits into
Builditluc:mainfrom
max-gaspers-scott:main
Nov 20, 2025
Merged

Add caching functionality#270
Builditluc merged 27 commits into
Builditluc:mainfrom
max-gaspers-scott:main

Conversation

@max-gaspers-scott

Copy link
Copy Markdown
Contributor

This PR introduces a caching system by storing pages locally and avoiding repeated API calls for the same content.

Key Changes:

  • Cache Implementation: Added caching functionality in the PageViewer component that stores pages with UUIDs for efficient lookup
  • Serialization Support: Added serde::Serialize and serde::Deserialize derives to enable cache persistence to disk
  • Cache-First Loading: New TryLoadPage action checks the cache first before making API requests

@max-gaspers-scott max-gaspers-scott marked this pull request as draft November 14, 2025 22:39
@max-gaspers-scott max-gaspers-scott marked this pull request as ready for review November 14, 2025 22:52

@Builditluc Builditluc left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

First of all, thank you for your time and this huge update to wiki-tui. I have a few things here and there to note but overall it looks very good.

From what I'm seeing, you published a new version of wiki-tui under wiki-tui2. After the PR has been merged, I can create a new release for version 0.9.2. Before that we'll have to update the version numbers of wiki-api and wiki-api-macros to only increase in one patch version. For the new version, do you have a changelog for the version, or should I write one?

Comment thread rust-toolchain
Comment thread wiki-tui.log Outdated
description = "Proc-macros for use within wiki-api"
documentation = "https://docs.rs/wiki-api-macros"
readme = "README.md"
homepage = "https://builditluc.github.io/wiki-tui"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Could you please change the homepage to https://wiki-tui.net

Comment thread wiki-api/Cargo.toml Outdated
description = "Backend for wiki-tui"
documentation = "https://docs.rs/wiki-api"
homepage = "https://wiki-tui.net"
homepage = "https://github.com/builditluc/wiki-tui"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Same here as with wiki-api-macros

```

If you want, you can also use the latest development version from GitHub (can be unstable)
If you want, you can also use the latest development version from the original GitHub repository (can be unstable)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Ig this could now be changed back

@Builditluc

Copy link
Copy Markdown
Owner

One more thing, currently the CI doesn't run because of the missing rust-toolchain. Could you either re-add it, or specify the toolchain specifically in the workflow (since the worflow file is specific to this pr)?

Update Rust toolchain version and project links
@max-gaspers-scott max-gaspers-scott marked this pull request as draft November 17, 2025 21:29
@max-gaspers-scott max-gaspers-scott marked this pull request as ready for review November 18, 2025 00:27
@max-gaspers-scott

Copy link
Copy Markdown
Contributor Author

Hello, I just email you a short changelog to wiki-tui@builditluc.eu with the most important changes if you want to take a look at it. let me know if there is anything else that you think could be improved!

@Builditluc Builditluc left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Looks good, it seems that language switching doesn't work anymore (changing the language of an article)

@Builditluc Builditluc merged commit 6d2e24a into Builditluc:main Nov 20, 2025
4 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in wiki-tui: Roadmap Nov 20, 2025
@Builditluc

Copy link
Copy Markdown
Owner

@all-contributors please add @coderFeedForwardAlg for maintenance and code

@allcontributors

Copy link
Copy Markdown
Contributor

@Builditluc

I've put up a pull request to add @coderFeedForwardAlg! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants