2014-03-09, 02:51:39
(2014-03-08, 18:04:10)Carlos Wrote: I think it could be done by checking (perhaps at the header hook) if file data/other/i18n_word_index.txt is older than data/other/news_manager/posts.xmlSearch plugin now updated to version 0.2 and some testing done.
This code will be called 99.9% times unnecessarily.
(2014-03-08, 06:08:35)sbatko Wrote: There is a chance that the News Manager also generate these events?I suppose could add a hook for this, like nm-cache-updated
Plugin itself is not able to do this
The only way to reindex is calling function:
PHP Code:
delete_i18n_search_index();
So, we must decide what's better:
a. News Manager calls delete_i18n_search_index itself (after testing existence of my search plugin) _OR_
b. News Manager publish hook nm-cache-updated and my plugin uses this to do job.
Any suggestions ?