This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Is Re-syncing Necessary?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46134
    adw259adw259
    Participant

    Ernest, my LeafBridge plugin does a daily remote sync of these thousands of products… https://snipboard.io/pemiyN.jpg and https://snipboard.io/16nwkg.jpg which are the CPT’s that I feed to the Ajax Search.
    When I first set-up Ajax Search I recall seeing some sort of progress bar for a few minutes. I guess that was Ajax Search reading the thousands of product CPT’s into it’s own schema or database table, correct?
    If that is so, I guess I will have to perform a re-sync of these products in the Ajax Search as often as the LeafBridge plugin syncs to it’s remote server?
    If I’m correct in my speculation, is there a way to have a cron job or some other mechanism perform Ajax Search’s indexing/sync daily?

    #46144
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    As long as the LeafBridge triggers the save_post hook, you don’t need to do anything. That hook is triggered whenever a new post or post object is created/changed and saved to the database. Usually properly coded migration/sync plugins trigger this hook for every single item they synced so the appropriate functions attached to that action can execute.
    Ajax Search Pro listens to that action and whenever it’s triggered it updates it’s database with the new post data automatically.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.