Is Re-syncing Necessary?

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 months, 3 weeks ago.

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

    Ernest, my LeafBridge plugin does a daily remote sync of these thousands of products… and 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?

    Ernest Marcinko
    Ernest Marcinko


    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.

    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.