K
K
Kirill Gorelov2017-05-02 19:34:20
PHP
Kirill Gorelov, 2017-05-02 19:34:20

How to implement constant monitoring of articles in php?

Hello.
There is a site where info is updated on average every 3-4 minutes, maybe earlier, or maybe later, depending on the time of day.
Now I have implemented this through a php parser, which I run once a minute. It works around the clock and monitors the change, if there are changes, it puts it in the database.
Q:
Can it be made easier? Is it possible to optimize it, to simplify tracking? Because you have to monitor 5 sites at once.
For example, to find out if the changes have passed or not, if so, then parse the site, if not, then nothing needs to be done.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2017-05-02
@dimonchik2013

you send the header
if the response is 304, then nothing has changed, if 200 - you download
it, of course, if the server is configured that way

B
Backenda, 2019-02-08
@backenda

Good afternoon. Perhaps the LinkUpdater service will help you .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question