Created The getSimpleHTMLDOMCached function (markdown)

LogMANOriginal 2018-09-15 20:56:35 +02:00
parent 2fff1c7536
commit 3648a96c6d

@ -0,0 +1,7 @@
The `getSimpleHTMLDOMCached` function does the same as the [`getSimpleHTMLDOM`](#the-getsimplehtmldom-function) function, except that the content received for the given URI is stored in a cache and loaded from cache on the next request if the specified cache duration was not reached. Use this function for data that is very unlikely to change between consecutive requests to **RSS-Bridge**. This function allows to specify the cache duration with the second parameter (default is 24 hours / 86400 seconds).
```PHP
$html = getSimpleHTMLDOMCached('your URI', 86400); // Duration 24h
```
**Notice:** Due to the current implementation a value greater than 86400 seconds (24 hours) will not work as the cache is purged every 24 hours automatically.