- November 23, 2023 at 6:53 am #46134
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?November 23, 2023 at 2:21 pm #46144
As long as the LeafBridge triggers theBest,
save_posthook, 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.
If you like my products, don't forget to rate them on codecanyon :)
You must be logged in to reply to this topic.