Author |
Message |
jay
Joined: 29 Sep 2007
Posts: 9
|
Posted:
Sat Sep 29, 2007 12:49 pm |
  |
hello,
I think your script is really great and i got it working so far.
But there is a little problem i got:
I am merging 3 feeds right now, and then display rssMesh.php with rss2html.
the problem is, that altho the 3 feeds update, it takes ages until the updates occur in the rssMesh feed.
How can i fix that?
Is it possible to have the rssMesh to update immediately?
thank you for your help |
|
|
 |
 |
MacSupport
Joined: 24 Feb 2005
Posts: 2805
|
Posted:
Sat Sep 29, 2007 4:03 pm |
  |
jay wrote: |
hello,
I think your script is really great and i got it working so far.
But there is a little problem i got:
I am merging 3 feeds right now, and then display rssMesh.php with rss2html.
the problem is, that altho the 3 feeds update, it takes ages until the updates occur in the rssMesh feed.
How can i fix that?
Is it possible to have the rssMesh to update immediately?
thank you for your help |
In the RSSMesh configuration there are cache settings, for how often the feeds are read.
Jim |
_________________ Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/
FeedForAll Mac and rss2html.php
support@FeedForAll.com |
|
  |
 |
jay
Joined: 29 Sep 2007
Posts: 9
|
Posted:
Sat Sep 29, 2007 4:36 pm |
  |
MacSupport wrote: |
In the RSSMesh configuration there are cache settings, for how often the feeds are read.
Jim |
is that the ?? coz i got that on 10 for every feed but still the entries dont show right away... |
|
|
 |
 |
MacSupport
Joined: 24 Feb 2005
Posts: 2805
|
Posted:
Sat Sep 29, 2007 7:08 pm |
  |
jay wrote: |
MacSupport wrote: |
In the RSSMesh configuration there are cache settings, for how often the feeds are read.
Jim |
is that the ?? coz i got that on 10 for every feed but still the entries dont show right away... |
There is also "UseOutputCaching" and "OutputCacheTTL"
Jim |
_________________ Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/
FeedForAll Mac and rss2html.php
support@FeedForAll.com |
|
  |
 |
jay
Joined: 29 Sep 2007
Posts: 9
|
Posted:
Sat Sep 29, 2007 7:49 pm |
  |
MacSupport wrote: |
jay wrote: |
MacSupport wrote: |
In the RSSMesh configuration there are cache settings, for how often the feeds are read.
Jim |
is that the ?? coz i got that on 10 for every feed but still the entries dont show right away... |
There is also "UseOutputCaching" and "OutputCacheTTL"
Jim |
so what should be the settings for all of that, so that it updates immediately? (if possible) |
|
|
 |
 |
MacSupport
Joined: 24 Feb 2005
Posts: 2805
|
Posted:
Sun Sep 30, 2007 9:33 am |
  |
jay wrote: |
so what should be the settings for all of that, so that it updates immediately? (if possible) |
If you disable caching and set the TTLs to 0 then it will update every time it is accessed. But this is will cause much slower page loading since it will have to fetch all of the feeds every time and then process them. That is why there is caching.
Jim |
_________________ Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/
FeedForAll Mac and rss2html.php
support@FeedForAll.com |
|
  |
 |
jay
Joined: 29 Sep 2007
Posts: 9
|
Posted:
Sun Sep 30, 2007 9:59 am |
  |
MacSupport wrote: |
jay wrote: |
so what should be the settings for all of that, so that it updates immediately? (if possible) |
If you disable caching and set the TTLs to 0 then it will update every time it is accessed. But this is will cause much slower page loading since it will have to fetch all of the feeds every time and then process them. That is why there is caching.
Jim |
hmm i did that but somehow it still doesnt update...
would it maybe help if only parts of each rss feed are fetched? because i really just need the headlines of each entry to be fetched.
can i tell rssMesh to do that?
really appreciate you helping me out here |
|
|
 |
 |
MacSupport
Joined: 24 Feb 2005
Posts: 2805
|
Posted:
Sun Sep 30, 2007 10:17 am |
  |
jay wrote: |
MacSupport wrote: |
jay wrote: |
so what should be the settings for all of that, so that it updates immediately? (if possible) |
If you disable caching and set the TTLs to 0 then it will update every time it is accessed. But this is will cause much slower page loading since it will have to fetch all of the feeds every time and then process them. That is why there is caching.
Jim |
hmm i did that but somehow it still doesnt update...
would it maybe help if only parts of each rss feed are fetched? because i really just need the headlines of each entry to be fetched.
can i tell rssMesh to do that?
really appreciate you helping me out here |
Each feed is one file, so the whole file has to be fetched to extract the wanted information.
Jim |
_________________ Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/
FeedForAll Mac and rss2html.php
support@FeedForAll.com |
|
  |
 |
jay
Joined: 29 Sep 2007
Posts: 9
|
Posted:
Sun Sep 30, 2007 10:51 am |
  |
well ok then.
that the updating takes so long, might it have something to do with the fact that each feed comes from a different server, not on the one the script is located on?? |
|
|
 |
 |
MacSupport
Joined: 24 Feb 2005
Posts: 2805
|
Posted:
Sun Sep 30, 2007 10:54 am |
  |
jay wrote: |
well ok then.
that the updating takes so long, might it have something to do with the fact that each feed comes from a different server, not on the one the script is located on?? |
That is the main reason to use caching on the input of feeds. Are you using caching with rss2html?
Jim |
_________________ Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/
FeedForAll Mac and rss2html.php
support@FeedForAll.com |
|
  |
 |
jay
Joined: 29 Sep 2007
Posts: 9
|
Posted:
Sun Sep 30, 2007 11:03 am |
  |
MacSupport wrote: |
jay wrote: |
well ok then.
that the updating takes so long, might it have something to do with the fact that each feed comes from a different server, not on the one the script is located on?? |
That is the main reason to use caching on the input of feeds. Are you using caching with rss2html?
Jim |
no, i got it set to 0 in both, rssMesh and rss2html |
|
|
 |
 |
MacSupport
Joined: 24 Feb 2005
Posts: 2805
|
Posted:
Sun Sep 30, 2007 12:04 pm |
  |
jay wrote: |
MacSupport wrote: |
jay wrote: |
well ok then.
that the updating takes so long, might it have something to do with the fact that each feed comes from a different server, not on the one the script is located on?? |
That is the main reason to use caching on the input of feeds. Are you using caching with rss2html?
Jim |
no, i got it set to 0 in both, rssMesh and rss2html |
Okay. I would recommend using input caching, but set it to small values like 300 or 600 seconds. And disable output caching.
Jim |
_________________ Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/
FeedForAll Mac and rss2html.php
support@FeedForAll.com |
|
  |
 |
jay
Joined: 29 Sep 2007
Posts: 9
|
Posted:
Sun Sep 30, 2007 1:44 pm |
  |
OK, now i got
rss2html.php
Quote: |
$allowCachingXMLFiles = 1; |
rssMesh.php
Quote: |
$allowCachingXMLFiles = 1; |
rssMesh Config.php
Quote: |
$useOutputCaching = 0; |
Quote: |
$outputCacheTTL = 0; |
in there, on each feed:
Quote: |
"feedTTL" => "300" |
still no immediate update :( |
|
|
 |
 |
MacSupport
Joined: 24 Feb 2005
Posts: 2805
|
Posted:
Sun Sep 30, 2007 2:52 pm |
  |
jay wrote: |
OK, now i got
rss2html.php
Quote: |
$allowCachingXMLFiles = 1; |
rssMesh.php
Quote: |
$allowCachingXMLFiles = 1; |
rssMesh Config.php
Quote: |
$useOutputCaching = 0; |
Quote: |
$outputCacheTTL = 0; |
in there, on each feed:
Quote: |
"feedTTL" => "300" |
still no immediate update :( |
You want do set "$allowCachingXMLFiles = 0;" in rss2html.php, that is what is causing you caching delay. The default caching time is 1 day.
Jim |
_________________ Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/
FeedForAll Mac and rss2html.php
support@FeedForAll.com |
|
  |
 |
jay
Joined: 29 Sep 2007
Posts: 9
|
Posted:
Sun Sep 30, 2007 3:19 pm |
  |
hmm ok, i did that. but right now i am only refreshing rssMesh.php anyway to see whether the entry is fetched or not... |
|
|
 |
 |
|