MickDoneDee, is there a setting that allows you to specify how long the RSS items display on the forumdisplay page?
There is a setting in the FeedForAll_Scripts_CachingExtension.php file that controls how long the current feed remains in your cache before a fresh copy is fetched. The fresh copy, however, may still be the same if you are fetching every 6 hours but the feed content is only updated every 24 hours by the website producing the feed.
Code:
// The variable $cacheTTL controls how many seconds a cached copy of an XML
// file can be used before it must be refetched from the server.
// $cacheTTL=60; //cache files for 1 minute
// $cacheTTL=3600; //cache files for 1 hour
$cacheTTL=21600; //cache files for 6 hours
I can't publish the entire file here because you have to register on feedforall.com to download this free file.
Is it possible for the items to display for a longer duration?
Are the earlier RSS items automatically deleted when the latest feed is updated?
Thanks.
As you can see from the above code it's possible to control how long you display a cached feed. The current feed will stay in cache and display on your forum until it refetches the feed and overwrites the current feed. Depending on how often the feed is updated with new content from the RSS source website your forumdisplay may or may not show new content.
Quote:
Originally Posted by amnesia623
I can't believe it.
I just found this thread, but I am using the same exact setup on a new theme I'm creating for my board. I want to load news feeds from different sources based on forums.
Now, my question and concern is this:
1) loading all the feeds into global start: doesn't that slow the board down? Even if it's pulling from the cache doesn't it have to load all the feeds into the variables but only display the variable according to the condition on ForumHome? I would like to find a way that it only loads the appropriate feed based on the forum.
You're right that it could be done more efficiently. In debug mode, I can see that 12 rss related files are included on every forum page. This may be extra PHP work that is unnecessary. I'll try your suggestions and report back.