Skip to content

purge cache example#79

Merged
ruslanti merged 3 commits into
mainfrom
feat/purge-cache-example
May 26, 2026
Merged

purge cache example#79
ruslanti merged 3 commits into
mainfrom
feat/purge-cache-example

Conversation

@ruslanti
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 26, 2026 12:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@ruslanti ruslanti changed the title Feat/purge cache example purge cache example May 26, 2026
@ruslanti ruslanti requested a review from qrdl May 26, 2026 12:25
@ruslanti ruslanti self-assigned this May 26, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.

Comment on lines +16 to +17
GET /purge — purge all cached keys; returns 200 with deleted count
GET /purge/<path_and_query> — purge keys whose cache key starts with cache:/<path_and_query>
Comment on lines +51 to +55
// Handle purge requests before any cache/origin logic
if path_and_query == "/purge" {
let deleted = cache::purge()?;
println!("purge all: {deleted} keys removed");
return Ok(Response::builder()
Comment thread src/lib.rs
Comment on lines 515 to +517
pub use crate::gcore::fastedge::cache_sync::expire;
#[doc(inline)]
pub use crate::gcore::fastedge::cache_sync::purge;
Comment thread src/lib.rs
Comment on lines +518 to +519
#[doc(inline)]
pub use crate::gcore::fastedge::cache_sync::purge_prefix;
@ruslanti ruslanti merged commit eba0390 into main May 26, 2026
2 of 12 checks passed
@ruslanti ruslanti deleted the feat/purge-cache-example branch May 26, 2026 14:07
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.

3 participants