WP Rocket - Best WordPress Caching Plugin

WP Rocket - Best WordPress Caching Plugin v3.18.3

No permission to download

lgokul

Well-known member
Babiato Lover
Null Master
Trusted Uploader
Jun 26, 2019
998
1,600
93
32
Planeta Vegeta
Hi @CyberDeviL install this new version and now when update a woocommerce product I get this error:
/public_html/wp-includes/class-wp-hook.php(288): rocket_clean_post_cache_on_slug_change('')

This did not happen with the previous version, do you know anything about it?
Thank you
 

CyberDeviL

Back to Life 🧬
Trusted Uploader
Aug 10, 2018
2,795
10,823
113
Earth
Hi @CyberDeviL install this new version and now when update a woocommerce product I get this error:
/public_html/wp-includes/class-wp-hook.php(288): rocket_clean_post_cache_on_slug_change('')

This did not happen with the previous version, do you know anything about it?
Thank you

I have never used wp-rocket with woocommerce , beside I don't modify any external codes including your mentioned one, so it's supposedly issue with wp-rocket (though i'm not confirmed about it) .

Optionally, you can exclude the pack from caching in wp-rocket settings if the page/'s are behaving unusually .
 
  • Like
Reactions: lgokul

lgokul

Well-known member
Babiato Lover
Null Master
Trusted Uploader
Jun 26, 2019
998
1,600
93
32
Planeta Vegeta
I have never used wp-rocket with woocommerce , beside I don't modify any external codes including your mentioned one, so it's supposedly issue with wp-rocket (though i'm not confirmed about it) .

Optionally, you can exclude the pack from caching in wp-rocket settings if the page/'s are behaving unusually .


Hello, apparently it is a conflict with the new feature of wp rocket.
"Enhancement: Cache cleaned when post slug / permalink is changed. (#1936) "

For those with the same problem I leave the solution.

Edite archive: wp-content/plugins/wp-rocket/inc/common/purge.php

Search:
Code:
function rocket_clean_post_cache_on_slug_change( $post_id, $post_data ) {
    if ( get_post_field( 'post_name', $post_id ) !== $post_data['post_name'] ) {
        rocket_clean_files( get_the_permalink( $post_id ) );
    }
}
add_action( 'pre_post_update', 'rocket_clean_post_cache_on_slug_change', 10, 2 );

And Replace
Code:
//function rocket_clean_post_cache_on_slug_change( $post_id, $post_data ) {
//    if ( get_post_field( 'post_name', $post_id ) !== $post_data['post_name'] ) {
//        rocket_clean_files( get_the_permalink( $post_id ) );
//    }
//}
//add_action( 'pre_post_update', 'rocket_clean_post_cache_on_slug_change', 10, 2 );

This is a temporary solution at least until they fix this function.
 

CyberDeviL

Back to Life 🧬
Trusted Uploader
Aug 10, 2018
2,795
10,823
113
Earth
Hello, apparently it is a conflict with the new feature of wp rocket.
"Enhancement: Cache cleaned when post slug / permalink is changed. (#1936) "

For those with the same problem I leave the solution.

Edite archive: wp-content/plugins/wp-rocket/inc/common/purge.php

This is a temporary solution at least until they fix this function.

Thanks for troubleshooting issues , , , might be useful for connected users.
 
  • Like
Reactions: lgokul

CyberDeviL

Back to Life 🧬
Trusted Uploader
Aug 10, 2018
2,795
10,823
113
Earth
CyberDeviL updated WP Rocket - Caching Plugin for WordPress with a new update entry:

WP Rocket v3.4.3 Final

CHANGELOG:
  • Enhancement: Do not attempt to clear cache files when do_rocket_generate_caching_files if false.
  • Enhancement: Rename “Save Settings” to “Validate Licence”.
  • Enhancement: Add target path and source path in rocket_css_content filter.
  • Bugfix: Remove rewrite rules on GoDaddy Managed Hosting.
  • Bugfix: Prevent cache clean when saving drafts.
  • Bugfix: Remove Cloudflare purge notice displayed on content update.
  • Bugfix: Prevent multiple admin notices.
  • Bugfix...

Read the rest of this update entry...
 

D3sK

New member
Nov 17, 2019
7
0
1
hello hello please help my

i have install wp-rocket
v3.4.2
https://babiato.tech/resources/wp-rocket-caching-plugin-for-wordpress.318/download
all is good

affter update i have install
v3.4.3

affter the is i have a problem white jetpack he is stop to conecting to my website affter the is problem i have desactive wp-rocket and boom my website is down wtf ? so i have been enter to jetpack panel "worpdress" and i have been active wp-rocket and my website is back online .. and jetpack turen off so please can i have some help and sorry for my bad english <3
 
Last edited:

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu