• Resolved sayantansdas

    (@sayantansdas)


    Hi team,

    I am noticing that the Authorship cron job only gets triggered if I disable and then enable the plugin. otherwise the database is not updated. attaching screenshot of the information

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter sayantansdas

    (@sayantansdas)

    do you have any solution for this issue?

    Plugin Author Molongui

    (@molongui)

    Hi @sayantansdas,

    You never provided the screenshot you mentioned, so I assume you mean the cron job that updates either post counters or post authorship. As you very well point out, those are run on plugin activation. But afterwards they are only run on demand (from the Authors > Tools page).

    Once data is set, it is updated every time a post is edited. Could you please provide some more detail on when your data is not updated? Maybe when changing authorship?

    Please let us know so we can assist.

    Thread Starter sayantansdas

    (@sayantansdas)

    Apologies for the late response. Trying to attach the screenshot again.

    https://imgur.com/a/ouV19Nz

    So, the data is not updated when a new post is created . I tested on my website by creating a new author and then posting an article , associating the new author. I saw the message (screenshot above). The Data updater process never completed. The data was updated only after disabling and enabling the plugin.

    Plugin Author Molongui

    (@molongui)

    Those admin notices are only shown after plugin activation. The plugin runs two background tasks in order to update (if necessary) post and authorship counters. If you have WP Cron disabled or blocked in some way, the jobs won’t run and counters won’t be updated.

    If those notices keep displaying even when the job is done, you may have a cache plugin. Try to flush admin cache. Does this make those notices to go away?

    However, when adding a new post (or editing an existing one), metadata is set while saving the post. No cron job is run then. So post counters should be updated, even if they are not displaying a correct number. Let’s say John Doe’s post count is 8. But our counter display 3. If you add John to a new post, our counter should display 4. The count is not correct, but it’s been updated with last change. Is it working like this for you?

    I mean, updating all post counters so they reflect the actual post count for each author is done as a background task. By default it is run on plugin activation. And you can also run it manually from: Authors > Tools > Authorship. But incrementing/decrementing post counters when editing a post, is done automatically on post save.

    Please let us know so we can assist.

    Plugin Author Molongui

    (@molongui)

    It’s been over two weeks since we last heard from you, so we are closing this ticket now. Hopefully you got it sorted out and everything is working just fine for you. If that is not the case and you want us to assist you, please feel free to reopen this ticket and we will be happy to.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cron job only triggers after deactivating and reactivating plugin’ is closed to new replies.