William Leung wrote:

> Santiago Gala wrote:
>
> > William Leung wrote:
> >
> > >         According to RSS 0.91 specification, if we do not specify a
> > > <skipHours> tags, the content assume to be refreshed every hour.
> > >         Will Jetspeed automatically feed those contents defined in
> > > RSSPortlet according to <skipHours> and <skipDays> tag?
> >
> > Currently, Jetspeed has a fixed strategy for updating the disk cache, based
> > on the modification dates for files. We are on the process to change it for
> > a strategy based on the channel metainformation.
> >
>
>         Just for a little remind, will you take RSS 1.0 specification into
> consideration when implementating schedule based feeding? I am not asking for
> actual implements 1.0 specification but write better code which can be reuse or
> extends to meet 1.0 standard (updatePeriod, updateFrequency,updateBase).
>

Yes. Kevin sent the spec to the list to remind us. I am looking into it. The
problem is that now the cache does not keep persistent metainformation about the
urls cached (only the lastModified date in the file). We should think on how to
handle this. Either storing a metainfo file... or constructing the structure in
memory at boot time from the feed info and the cache directory info.

This is valid for channels, but there are other items stored in the cache (feeds,
dtds, ...) For the rest of the files, I assume that we could keep using the
lastModified info, once we manage to do it in a non java2 way.

>
> >
> > >
> > >         If yes, which class performs the scheduling, FeedDaemon?
> >
> > The daemon is the DiskCacheDaemon. The results depend on the version you
> > have. The 1.2b1 has a bug that makes it skip updating most of the channels.
> >
>
>         Is it also the responsibility of DiskCacheDaemon to fetch new content
> according to channel's
> metainfomation? or it should be done by FeedDaeon and DiskCacheDaemon
> periodically loads the new content from local document cache folder?
>

FeedDaemon should  process the ocs feeds at startup and when scheduled, taking them
from the cache. Currently there is a bug in cvs that makes it work only every two
invocations (first, third, ...). It will also be fixed in the next days (I hope).

DiskCacheDaemon is responsible of keeping up to date the url/files in the cache.

>
> >
> > >
> > >
> > >         My Jetspeed seems unable to feed new content except I delete the
> > > corresponding cached file from [JetspeedDocumentCache].
> >
> > Yes, that should be the expected behaviour for 1.2b1. The current CVS is
> > broken in this regard, but in the next few days there will be a version that
> > allows automated cache updating, be it with a fixed schedule, or taking into
> > account the channel metainformation.
> >
> > For the moment, you should delete files from the cache to have them updated.
> > Sorry about that.
> >
>
>     Thanks for confirmation about this and was not cause by my misconfiguration
> :-)
>
> >
> > >
> > > --
> > > Regrads,
> > > William Leung
> > >
> > > --
> > > --------------------------------------------------------------
> > > Please read the FAQ! <http://java.apache.org/faq/>
> > > To subscribe:        [EMAIL PROTECTED]
> > > To unsubscribe:      [EMAIL PROTECTED]
> > > Archives and Other:  <http://java.apache.org/main/mail.html>
> > > Problems?:           [EMAIL PROTECTED]
> >
> > --
> > --------------------------------------------------------------
> > Please read the FAQ! <http://java.apache.org/faq/>
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Archives and Other:  <http://java.apache.org/main/mail.html>
> > Problems?:           [EMAIL PROTECTED]
>
> --
> Regards,
> William Leung
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to