Close

Account

Documentation

Forum

Menu

JNews- Social Counter widget bug

  • Post count: 7
    AL_JOHN
    November 3, 2017 at 6:11 pm #24945

    Hi, in the “JNews- Social Counter widget”, having the FB App ID settings, FB App Secret, etc. correct, does not show the actual values of FB number fans , which remain at 1, since I have configured it.
    what should I check?
    Thx
    Alessandro

    Post count: 7
    AL_JOHN
    November 3, 2017 at 7:12 pm #24948

    update. FB fans number has been updated after almost 1 day ….not is in real time !!

    • This reply was modified 2 weeks, 3 days ago by  AL_JOHN.
    Post count: 2448
    Jegbagus
    November 4, 2017 at 2:17 am #24959

    hi Alessandro, yes its not real time. and it cache 1 days. why would you need it real time?

    we can make it real time if you want to, but your server will always do request to facebook server everytime people look at your website, its mean your website will get very heavy because it will need to contact facebook before they your customer get their page.

    if you want to reduce how long it take to reduce cache, we also can provide you the code.

    Thank you

    Post count: 7
    AL_JOHN
    November 4, 2017 at 6:23 pm #24979

    OK. Can you provide the code to reduce reduce cache time?
    Thank you

    Post count: 2448
    Jegbagus
    November 4, 2017 at 11:02 pm #24983

    hi AL_JOHN, please go to jnews themes folder > class > widget > normal > element > SocialCounterWidget.php, and on line 548, you should change this line 60 * 60 * 24 into for example 60 for 1 minutes.

    Thank you

You must be logged in to reply to this topic.