-
Notifications
You must be signed in to change notification settings - Fork 226
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
Closes #5885: Preload: Don't try to preload private pages #5920
Closes #5885: Preload: Don't try to preload private pages #5920
Conversation
@jeawhanlee Thanks for the PR. Now adding new private post / editing content of existing private post won't add any entry in the cache table. However, @piotrbak do you think we need to do change for any of the following?
|
@Mai-Saad 2 and 3 are okay. For the first one, it's acceptable, but it would be better if we could remove that kind of post from the cache table directly. @jeawhanlee Is it doable without much complexity? |
@piotrbak We should be able to do that. |
@jeawhanlee Please try to do that. If you have any troubles or feel it can introduce side effects, please ping me |
@jeawhanlee Thanks for the updates. editing public post to private, is not sending any requests now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After a discussion with @jeawhanlee we agreed to make it more performant and use static variable to have the list of private urls not to get the list again with each url and instead of adding a new condition/login we will use the filter rocket_preload_exclude_urls
to exclude all of those private posts urls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working as expected. 👍
TestRail report: testrail-report-496.pdf
Description
Checks for posts with private status and exclude from preload.
Fixes #5885
Type of change
Is the solution different from the one proposed during the grooming?
No
How Has This Been Tested?
Automated tests
Checklist: