• Resolved bing4

    (@bing4)


    Hi! That seems to be some problem with progressbar and leaderboard to get actual info :

    What was made : 2 completed (status on woocommerce) donations.

    There is no changes on progressbar.

    On leaderboard : If I paste simple shortcode [wcdp_leaderboard] on any page It shows 2 completed payments. BUT if it contains [wcdp_leaderboard id=”241″] it returns no payments.

    I saw on FAQ page : So if the amount is not updated directly, the problem should resolve itself within 6h (or if a new donation is processed in the meantime).

    Ok. There is no Cache plugins on site.

    Some info from config :

    define( ‘WP_CACHE’, false );

    define(‘DISABLE_WP_CRON’, true);

    WP version 6.4.3.

    My question is how can we force progressbar and leaderboard to be updated via Cronjob ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jonas

    (@flinnn)

    Hi bing4,

    thanks for reaching out.
    You can manually clear the cached data in the plugin settings. You can also automatically run the following code to delete the cache:

    WCDP_Progress::delete_total_revenue_meta_for_all_products();
    WCDP_Leaderboard::delete_cached_leaderboard_total();

    The plugin does not yet take the WP_CACHE constant into account, I will add this in the next release.

    Best,
    Jonas

    Thread Starter bing4

    (@bing4)

    Hi Flinnn,

    Thank you for solution. Can you provide more info about which file/string should be used to paste : WCDP_Progress::delete_total_revenue_meta_for_all_products(); WCDP_Leaderboard::delete_cached_leaderboard_total();

    ?

    Thank you.

    • This reply was modified 8 months, 4 weeks ago by bing4.
    Plugin Author Jonas

    (@flinnn)

    I apologize for the delayed response. The code I provided is tailored for experienced users proficient in WordPress development. If you’re unfamiliar with executing custom code, I would advise against implementing it without proper understanding.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to force progressbar and leaderboard to be actual ?’ is closed to new replies.