• rowdogz

    (@rowdogz)


    Again great plugin and thank you for all your help and support.
    Quick question regarding CLI CALC function. I find when I use it, it correctly calculates the scores but it does not update the user rankings. at the moment I manually go in afterwards and click on the UI to update the rankings, I was wondering if I am doing something wrong or missing something to ensure that this happens using the CLI function?

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

    (@antoineh)

    Not sure that I understand your question correctly. The CLI function only calculates the new ranking in the database, so visitors can see the new ranking once it is calculated. It doesn’t do anything on the UI (there is only a command line).

    p.s. sorry for the late response. Apparently the new forum removed my email subscription so I didn’t get any notifications for new posts in the forum.

    Thread Starter rowdogz

    (@rowdogz)

    Thanks for coming back to me, I find when I run the CLI CALC, it does calculate the scores for the users. But I have to go into the UI and press save under matches for it to update to show the users their new scores.
    I thought using the CLI CALC function would calculate the scores for users and update them to show the users when the log in?

    Plugin Author AntoineH

    (@antoineh)

    The CLI function does the same as when you calculate via the admin. Only with WP_CLI you call the function via the command-line and this is (usually) faster because there is no delay in doing multiple requests to the server.

    Sounds a bit like you have some caching on the front end. Did you check if other users also experience the same problem? Or do you have a way to invalidate the cache after a calculation?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CLI CALC’ is closed to new replies.