<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>selfoss support forum - Automatic update on visit</title>
<link>https://forum.selfoss.aditu.de/</link>
<description>selfoss support forum</description>
<language>en</language>
<item>
<title>Automatic update on visit (reply)</title>
<content:encoded><![CDATA[<p>Thank you for your work!<br />
That's great - should be implemented in the next (official) release(s)</p>
<p><img src="https://forum.selfoss.aditu.de/images/smilies/smile.png" alt=":-)" /></p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=543</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=543</guid>
<pubDate>Tue, 25 Jun 2013 08:45:44 +0000</pubDate>
<dc:creator>lorddrak</dc:creator>
</item>
<item>
<title>Automatic update on visit</title>
<content:encoded><![CDATA[<p>Hi.</p>
<p>I added a couple of lines to my index.php to automatically update the feeds when I visit the page. Thought I share, as it might come in handy if you don't have the ability to call update on a cron.</p>
<p>&quot;auto_update_interval&quot; is a new INI-entry and denotes the min-time between two updates in seconds.</p>
<p>put this after the logger init:</p>
<p>// -----------------------------------<br />
// Update<br />
$test =&quot;&quot;;<br />
if (isset($_COOKIE[&quot;updated&quot;]))<br />
 $test = $_COOKIE[&quot;updated&quot;];<br />
if ($test == &quot;&quot;)<br />
{<br />
 $loader = new \helpers\ContentLoader();<br />
 $loader-&gt;update();<br />
 setcookie(&quot;updated&quot;,&quot;true&quot;,time()+$f3-&gt;get('auto_update_interval'));<br />
}<br />
// -----------------------------------</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=539</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=539</guid>
<pubDate>Sun, 23 Jun 2013 08:14:09 +0000</pubDate>
<dc:creator>ultimatebelkar</dc:creator>
</item>
</channel>
</rss>
