{"id":6394342,"date":"2015-08-03T21:47:34","date_gmt":"2015-08-03T21:47:34","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/compatibility-with-wp-rocket-2\/"},"modified":"2016-08-30T16:25:09","modified_gmt":"2016-08-30T16:25:09","slug":"compatibility-with-wp-rocket-2","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/compatibility-with-wp-rocket-2\/","title":{"rendered":"Compatibility with WP Rocket"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>I&#8217;m one of WP Rocket developers. This plugin is a caching system and we would like to purge the post cache after a rate.<\/p>\n<p>We noticed you are using a function &#8220;yasr_wp_super_cache_support&#8221; to be compatible with WP Super Cache.<\/p>\n<p>Could you do the same with WP Rocket?<\/p>\n<p>Here the code:<\/p>\n<p>function yasr_wp_rocket_support( $post_id ) {<br \/>\n\tif( function_exists( &#8216;rocket_clean_post&#8217; ) ) {<br \/>\n\t\trocket_clean_post( post_id );<br \/>\n\t}<br \/>\n}<\/p>\n<p>Don&#8217;t hesitate if you have any questions.<\/p>\n<p>Have a great day.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/yet-another-stars-rating\/<\/p>\n","protected":false},"template":"","class_list":["post-6394342","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6394342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6394342\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6394342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}