reindex specific PHP page on change?
Hello -
Great script! Our site has some pages with articles that users can comment on. The comments are added to a text file and then included at the bottom of the page using a simple PHP include statement. phpDig is able to index these comments with no problem. What I would ideally like to do is to add a line to my PHP comment script that would make phpDig reindex just that page after adding the new comment. I realize that I could call the spider script after adding the comment, but how can I specify the specific URL and keep phpDig from spidering all the other links? I want to keep my search index up-to-date, but I don't want to tax the server unnecessarily. THANKS in advance for your response. |
Hi. Maybe try something like the following:
PHP Code:
|
RE: reindex specific PHP page on change?
Thanks! I'll give it a try in a day or so and let you know how it turned out. I think I'll probably add a flag to spider.php to make it only reindex that one page rather than setting it in the config file (since at other times I'll want it to spider).
|
All times are GMT -8. The time now is 04:59 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.