-
Notifications
You must be signed in to change notification settings - Fork 216
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
Partial Preload trying to access incorrect shop page urls (WooCommerce) #2068
Comments
Is the |
@webtrainingwheels If you have a chance to remind you the problem, can you reply to @Tabrisrp question? 👆 |
@Tabrisrp ummmm sorry for the delay! ;) Yes, the shop is the archive page for Products |
@webtrainingwheels Thanks for the response. |
@GeekPress done |
Another case here: https://secure.helpscout.net/conversation/1296584740/198620/ |
Similar case: https://secure.helpscout.net/conversation/1320995121/205970?folderId=377611 Similar to Alfonso's case above, Preload is trying to directly access: |
When This seems like it could be coming from here: wp-rocket/inc/common/purge.php Line 74 in e493551
|
This is happening because of what I mentioned in my previous comment on this thread. We are adding the wp-rocket/inc/common/purge.php Line 74 in e493551
Note: Slack Conversation: https://wp-media.slack.com/archives/C43T1AYMQ/p1610721622025900 Related ticket: https://secure.helpscout.net/conversation/1393456557/230505 |
Temporary solution: https://docs.wp-rocket.me/article/1506-remove-custom-post-urls-from-purge |
Reproduce the problemThe problem was easy to reproduce. Identify the root causeThe root cause of the problem is coming from the clearing cache logic. Scope a solutionA quick solution would be to remove For that we can create a new filter Then we will create a method public function format_preload_url( string $url ) {
return preg_replace('/(index\.html)|(index\.html_gzip)$/', '', $url);
} Finally we will hook that function to the filter Estimate the effortEffort |
Related: https://secure.helpscout.net/conversation/2032139861/373700?folderId=3864740 These URLs are being preloaded:
|
When you publish a product in WooCommerce or update it,
Partial_Preload
is trying to access some incorrect URLs for the page set as the Shop page in WooCommerce.On every product publish/update, these 3 URLs 404:
Steps to reproduce:
Tickets:
https://secure.helpscout.net/conversation/986778716/127894?folderId=377611
https://secure.helpscout.net/conversation/983825572/127434?folderId=377611
The text was updated successfully, but these errors were encountered: