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

Dynamic Tags - Reduce and cache replacement requests #1619

Merged
merged 5 commits into from
Dec 31, 2024

Conversation

iansvo
Copy link
Collaborator

@iansvo iansvo commented Dec 23, 2024

Relates to: #1616

This PR implements a local client side cache and server side object cache to reduce the amount of requests and database lookups. 

Based on my tests it seems to be much faster afterwards. Please have a look and let me know what you see.

@iansvo iansvo self-assigned this Dec 23, 2024
@iansvo iansvo requested a review from tomusborne December 23, 2024 04:12
@iansvo iansvo added feature Features, refactoring, enhancements, improvements Dynamic Tags labels Dec 23, 2024
@iansvo iansvo mentioned this pull request Dec 28, 2024
3 tasks
tagName,
isSavingPost,
blockCacheKey,
isSelected,
Copy link
Owner

Choose a reason for hiding this comment

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

Do we want/need this to run every time isSelected changes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can test again to make 100% sure, but I feel like this was necessary to refresh the value in case it changed or something along those lines. I've done a few PRs since then so I don't remember offhand.

@tomusborne tomusborne merged commit 4f82a8f into release/2.0.0 Dec 31, 2024
9 checks passed
@tomusborne tomusborne deleted the tweak/dynamic-tags-batch-replacements branch December 31, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dynamic Tags feature Features, refactoring, enhancements, improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants