Skip to content

Conversation

@yma955
Copy link
Member

@yma955 yma955 commented Jan 20, 2025

No description provided.

@yma955 yma955 requested review from ligangty, ruhan1 and sswguo January 20, 2025 01:00
doProxy = true;
}
// if the site is not in memory, query db through isProxySite
else if ( isProxySite( site ) )
Copy link
Member

Choose a reason for hiding this comment

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

For those sites already in the whitelist, this will check it every request, right ? it's better to avoid that if it's the case.

Copy link
Member Author

Choose a reason for hiding this comment

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

@sswguo yeah, that's the point. I'll try to add another mem cache for whitelist, and any first successful request going to the site without proxy will add into it, the following access on this whitelist site will check the mem cache instead to avoid frequent db query.
I'm doing refactor on Commonjava/path-mapped-storage#121, will amend this point together.

@yma955
Copy link
Member Author

yma955 commented Feb 7, 2025

Close this and will commit new PR.

@yma955 yma955 closed this Feb 7, 2025
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.

2 participants