1 The getSimpleHTMLDOMCached function
LogMANOriginal edited this page 2018-09-15 20:56:35 +02:00

The getSimpleHTMLDOMCached function does the same as the getSimpleHTMLDOM 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).

$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.