• Resolved adminseekout

    (@adminseekout)


    Hi,

    i am currently using WP Super Cache to cache my site.
    But when i implement site reviews, i realise that it confliuct with this plugin. whenever i do a submit review it seems that i cant populate the review ( Summary of reviews). although back in my wordpress admin dashboard i can clearly see that the review have been submitted.

    I had to do a delete cache to make the result appear. i tried to disable WP Super Cache and it seems that it worked. but i do want to use WP Super Cache so is there any configuration i missed out? or is it that both plugin conflicts?

    i am currently using v3.0 beta

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter adminseekout

    (@adminseekout)

    i think this have got to do with page cache problem.. i tried to switch around from wp super cache to W3 Total Cache problem persist. whenever i do a page cache function in the plugin, it appears that review would not be loaded. i had to do a delete cache in order for the review to appear.

    Plugin Author Gemini Labs

    (@geminilabs)

    Try this and let me know if it works:

    Use this if you are using Site Reviews v2:

    /**
     * Use if you have Site Reviews v2.0 - Clears the "WP Super Cache" page cache after submitting a review
     * Add to your theme's function.php file
     * @return void
     */
    add_action( 'site-reviews/local/review/create', function() {
        if( function_exists( 'wp_cache_post_change' )) {
            wp_cache_post_change( get_the_ID() );
        }
    });

    Use this if you are using Site Reviews v3:
    You may download the unreleased (stable) beta version of Site Reviews v3.0 here: https://github.com/geminilabs/site-reviews-v3/archive/v3.0.0-beta-3.zip

    /**
     * Use if you have Site Reviews v3.0 - Clears the "WP Super Cache" page cache after submitting a review
     * Add to your theme's function.php file
     * @return void
     */
    add_action( 'site-reviews/review/created', function() {
        if( function_exists( 'wp_cache_post_change' )) {
            wp_cache_post_change( get_the_ID() );
        }
    });
    • This reply was modified 6 years, 5 months ago by Gemini Labs.
    Thread Starter adminseekout

    (@adminseekout)

    hmmm strange, is there smth wrong or i forgot to input any code?

    ERROR message : Your PHP code changes were rolled back due to an error on line 78 of file wp-content/themes/bb-theme-child/functions.php. Please fix and try saving again.

    syntax error, unexpected ‘function’ (T_FUNCTION), expecting ‘,’ or ‘)’ and line 78 was
    add_action( 'site-reviews/review/created' function() {

    Plugin Author Gemini Labs

    (@geminilabs)

    @adminseekout Sorry, that was my fault…I made a mistake in the code I pasted. Please paste again from the code above.

    Thread Starter adminseekout

    (@adminseekout)

    hmmm no luck, i copied and paste the code above again but it still happen. need to turn off my page cache or manually delete the cache in order for it to work. strange..

    just wondering if there’s any form of settings i need to apply yo wp super cache side too?

    • This reply was modified 6 years, 5 months ago by adminseekout.
    Plugin Author Gemini Labs

    (@geminilabs)

    Instead of using the above hooks, have you tried setting the “Clear all cache files when a post or page is published or updated.” in the WP Super Cache settings?

    That works for me (I am testing with Site Reviews v3, but it should work for v2 also).

    • This reply was modified 6 years, 5 months ago by Gemini Labs.
    Thread Starter adminseekout

    (@adminseekout)

    hey guys, it’s working now thanks alott!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WP Super Cache’ is closed to new replies.