M
M
Mixa2017-08-07 12:51:11
PHP
Mixa, 2017-08-07 12:51:11

How to refresh page for Simple_html_dom?

I use Simple HTML Dom sites for parsing one page . And then he noticed that he does not see the latest updates on the page, while regularly collecting posts that are no longer on this page, because. they moved to the second page of the tape. As I understand it, the script has something like its own cache, where it loads the pages and it is not clear how to make it clean it so that it works correctly again.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Pushkarev, 2017-08-07
@AXP-dev

Use->clear()

S
Stalker_RED, 2017-08-07
@Stalker_RED

As far as I can see, there is no cache in it, and the page is requested using file_get_contents(). Can you show the code you are requesting the content of the page?
In general, Simple_html_dom has not been updated for three years. For this I prefer a slightly more complex, but cool zend_dom_query.

L
Lander, 2017-08-07
@usdglander

Are you sure that the content on the page is not loaded by AJAX?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question