OneGoodMan
Members
-
Joined
-
Last visited
Reputation Activity
-
The biggest problem with retrieving dynamic content from external websites is that the structure of the target may change and breaks all your regex. It's not really the cron timers fault but the script being called by cron is where the error log will point.
Behind the scenes of my little job hunting project a similiar process takes place with a cron job banging away at a fetch_data script and the output is stored in the database.
When a results page is initially loaded the stored content is shown but an AJAX call also fires the same fetch_data script and when that comes back with the most recent data a few seconds later this gets swapped into the page for the human visitor to see (& database gets updated).
If googlebot runs over the site a server side trip goes off and calls the same fetch_data script. We then decide if the bot gets fed the existing stored content or is forced to wait for the new data thus controlling what google percieves as the loading time.
That all may seem a lot of messing about to display dynamic content but has several advantages;
1.Visitor is happy because they had something to look at while waiting.
2.Google is happy because it finds almost fresh new content & a quick load time.
3.If the cron job or fetch_data script ever fail the site would still function for visitors by showing the last lot of information.