-
Notifications
You must be signed in to change notification settings - Fork 215
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 #6715 #6739
Closes #6715 #6739
Conversation
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences🚀 Don’t miss a bit, follow what’s new on Codacy. Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more Footnotes
|
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.
Early review to provide some guidance and speed up the process.
There is still 1 failing integration test.
inc/Engine/Common/JobManager/APIHandler/AbstractSafeAPIClient.php
Outdated
Show resolved
Hide resolved
d8d2fd7
to
1ba414b
Compare
1ba414b
to
d26235d
Compare
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
@Mai-Saad Is WP-Rocket still running license checks on the front end? |
@thinkjarvisdesignandmarketing, Hello Here are some details about the fix: The root cause of the issue was that, in case the transient expires, the call was retried on each load of the plugin until it succeeded. Since the website was not responding, this happened up until we were back online, and each plugin load had to wait for the timeout to be reached to continue. Note that this timeout is not enforced by our plugin but the default value (configurable in WordPress) is used. To mitigate this type of issue, we already had exponential retry mechanisms implemented (if a call fails, don't retry at every plugin load, but wait a bit before retrying, and so on). This is the standard state-of-the-art approach for this. Unfortunately, such a strategy was not implemented for this specific call. In the upcoming version, we apply this retry strategy to the problematic call as well, so that, in case wp-rocket.me does not respond, your websites won't keep trying to reach it systematically. |
@MathieuLamiot Can you please confirm that the license checks are no longer tied directly to cache generation, RUCSS and preload? Otherwise the proposed solution does not solve the problem Why is the transient lifespan not tied to the expiry date of the clients subscription to WP-Rocket? |
Description
Fixes #6715
Documentation
User documentation
Explain how this code impacts users.
Technical documentation
Explain how this code works. Diagram & drawings are welcomed.
Type of change
Delete options that are not relevant.
New dependencies
List any new dependencies that are required for this change.
Risks
List possible performance & security issues or risks, and explain how they have been mitigated.
Checklists
Feature validation
Documentation
Code style
Observability
Risks