You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Van Rogers-Ho <va...@gmail.com> on 2011/04/05 21:56:53 UTC

home page recent posts not reflecting planetrss

Hi,

I'm seeing something odd where the home/front page recent posts are not
reflecting new entries unless you are logged in. Some observations:


   1. The new entry is in an existing blog.
   2. I can see it OK under /planetrss *without* logging in.
   3. clearing local cache *does not* fix it
   4. Doing a site wide clearing of cache (server admin>Cache info>
   cache.sitewide) *does* fix this and all users can see it.

There is a job that runs every 6 hours, tasks.SyncWebsitesTask.interval=360.
Is this what I would change to get quicker visibility of new posts? It seems
odd that a logged in user and /planetrss are OK.
Also, ROLLER.RAG_ENTRY does have the new entry.

Essentially, new entry is in ROLLER.RAG_ENTRY, /planetrss and on front page
(logged in). However, it takes a site wide cache flush to have guest see it.

Thanks,
Van


*Enviroment:*

I'm running 4.01, WLS 11g, Oracle DB
The front page is standard:

## get pager over recent posts, uses planet aggregator
#set($pager = $planet.getAggregationPager(14, $recentPosts))
...
 #foreach($entry in $pager.items)
    <div class="entry">
    <h3><a
href="$utils.escapeHTML($entry.permalink)">$utils.truncateNicely($utils.removeHTML($entry.title),
50, 50, "...")</a></h3>
    <p class="entryDetails">
        <a href="$utils.escapeHTML($entry.website.URL)">$utils.removeHTML($
entry.website.name)</a>
        #if($entry.category.name)| $entry.category.name #end
        #if($entry.pubTime) | $utils.formatDate($entry.pubTime, "MMMM dd,
hh:mm a zzz") #end
        #if($entry.creator.userName)| By $entry.creator.userName #end
        <br/>
    </p>
    <p class="entryDescription">
        $utils.truncateNicely($utils.removeHTML($entry.text), 240, 260,
"...")
    </p>
    </div>
    #end

In roller-custom.properties:
# enable planet tasks
tasks.enabled=ScheduledEntriesTask,ResetHitCountsTask,TurnoverReferersTask,\
PingQueueTask,RefreshRollerPlanetTask,SyncWebsitesTask

# config refresh entries task to run every 20 minutes
tasks.RefreshRollerPlanetTask.startTime=immediate
tasks.RefreshRollerPlanetTask.interval=20
tasks.RefreshRollerPlanetTask.leaseTime=30

# sync weblogs to aggregator 4 times daily
tasks.SyncWebsitesTask.startTime=immediate
tasks.SyncWebsitesTask.interval=360
tasks.SyncWebsitesTask.leaseTime=30

Re: home page recent posts not reflecting planetrss

Posted by Van Rogers-Ho <va...@gmail.com>.
Hi Dave,

"toggling" refers to how the new entry appears depending on authentication.
I think this may be related to:
# set "true" to NOT cache the custom pages for users who are logged in
cache.excludeOwnerEditPages=false

I have this set to "true."

I played around with the different caches and changed them to 180 (3 min)
and same thing is happening (planetrss is updated, front page is not until
global or front page cache is cleared). I'll take another look at my cache
setup (following).

Cache settings:
# Main page cache
cache.sitewide.size=150
cache.sitewide.timeout=180
# Planet cache
cache.planet.size=30
cache.planet.timeout=180
# Weblog pages cache
cache.weblogpage.size=4000
cache.weblogpage.timeout=180
# Weblog feeds cache
cache.weblogfeed.size=4000
cache.weblogfeed.timeout=180
Thanks,
Van


On Tue, Apr 5, 2011 at 11:15 PM, David Johnson <sn...@gmail.com> wrote:

>
>
> Sent from my iPad
>
> On Apr 5, 2011, at 10:41 PM, Van Rogers-Ho <va...@gmail.com> wrote:
>
>   Hi Dave,
>
> Is that normal timeout determined by any roller parameter, such as
> tasks.SyncWebsitesTask.interval=360? Is there something that will
> periodically clear cache of front page and reflect what's on /planetrss?
>
>
> The normal cache setting apply. There are separate settings for page, feed
> and site-wide blogs, which you can see in roller.properties (in the install
> guide appendix).
>
>
>
>   And why the toggling of the new entry based on authentication? Not sure
> if anyone else has experienced this one.
>
>
> I don't understand what you mean by "toggling of the new entry based on
> authentication" - can you please elaborate?
>
> - Dave
>
>
>
> Thanks,
> Van
> On Tue, Apr 5, 2011 at 10:30 PM, Dave <sn...@gmail.com> wrote:
>
>> On Tue, Apr 5, 2011 at 4:02 PM, Van Rogers-Ho <va...@gmail.com>
>> wrote:
>> > One other detail I can add: I can also fix issue if I go to main blog
>> that
>> > serves as the front page and flush that cache.
>> >
>> > Go to that blog> Preferences tab> Maintenance> Flush Cache button.
>>
>> I think that is expected behavior, the pages are not immediately
>> updated when an aggregation completes. You have to wait for normal
>> time out.
>>
>> - Dave
>>
>>
>> > On Tue, Apr 5, 2011 at 3:56 PM, Van Rogers-Ho <va...@gmail.com>
>> wrote:
>> >
>> >> Hi,
>> >>
>> >> I'm seeing something odd where the home/front page recent posts are not
>> >> reflecting new entries unless you are logged in. Some observations:
>> >>
>> >>
>> >>    1. The new entry is in an existing blog.
>> >>    2. I can see it OK under /planetrss *without* logging in.
>> >>    3. clearing local cache *does not* fix it
>> >>    4. Doing a site wide clearing of cache (server admin>Cache info>
>>  >>    cache.sitewide) *does* fix this and all users can see it.
>> >>
>> >> There is a job that runs every 6 hours,
>> >> tasks.SyncWebsitesTask.interval=360. Is this what I would change to get
>> >> quicker visibility of new posts? It seems odd that a logged in user and
>> >> /planetrss are OK.
>> >> Also, ROLLER.RAG_ENTRY does have the new entry.
>> >>
>> >> Essentially, new entry is in ROLLER.RAG_ENTRY, /planetrss and on front
>> page
>> >> (logged in). However, it takes a site wide cache flush to have guest
>> see it.
>> >>
>> >> Thanks,
>> >> Van
>> >>
>> >>
>> >> *Enviroment:*
>> >>
>> >> I'm running 4.01, WLS 11g, Oracle DB
>> >> The front page is standard:
>> >>
>> >> ## get pager over recent posts, uses planet aggregator
>> >> #set($pager = $planet.getAggregationPager(14, $recentPosts))
>> >> ...
>> >>  #foreach($entry in $pager.items)
>> >>     <div class="entry">
>> >>     <h3><a
>> >>
>> href="$utils.escapeHTML($entry.permalink)">$utils.truncateNicely($utils.removeHTML($entry.title),
>> >> 50, 50, "...")</a></h3>
>> >>     <p class="entryDetails">
>> >>         <a
>> href="$utils.escapeHTML($entry.website.URL)">$utils.removeHTML($
>> >> entry.website.name)</a>
>> >>         #if($entry.category.name)| $entry.category.name #end
>> >>         #if($entry.pubTime) | $utils.formatDate($entry.pubTime, "MMMM
>> dd,
>> >> hh:mm a zzz") #end
>> >>         #if($entry.creator.userName)| By $entry.creator.userName #end
>> >>         <br/>
>> >>     </p>
>> >>     <p class="entryDescription">
>> >>         $utils.truncateNicely($utils.removeHTML($entry.text), 240, 260,
>> >> "...")
>> >>     </p>
>> >>     </div>
>> >>     #end
>> >>
>> >> In roller-custom.properties:
>> >> # enable planet tasks
>> >>
>> >>
>> tasks.enabled=ScheduledEntriesTask,ResetHitCountsTask,TurnoverReferersTask,\
>> >> PingQueueTask,RefreshRollerPlanetTask,SyncWebsitesTask
>> >>
>> >> # config refresh entries task to run every 20 minutes
>> >> tasks.RefreshRollerPlanetTask.startTime=immediate
>> >> tasks.RefreshRollerPlanetTask.interval=20
>> >> tasks.RefreshRollerPlanetTask.leaseTime=30
>> >>
>> >> # sync weblogs to aggregator 4 times daily
>> >> tasks.SyncWebsitesTask.startTime=immediate
>> >> tasks.SyncWebsitesTask.interval=360
>> >> tasks.SyncWebsitesTask.leaseTime=30
>> >>
>> >>
>> >>
>> >
>>
>
>

Re: home page recent posts not reflecting planetrss

Posted by David Johnson <sn...@gmail.com>.

Sent from my iPad

On Apr 5, 2011, at 10:41 PM, Van Rogers-Ho <va...@gmail.com> wrote:

> Hi Dave,
>  
> Is that normal timeout determined by any roller parameter, such as tasks.SyncWebsitesTask.interval=360? Is there something that will periodically clear cache of front page and reflect what's on /planetrss?

The normal cache setting apply. There are separate settings for page, feed and site-wide blogs, which you can see in roller.properties (in the install guide appendix).


>  And why the toggling of the new entry based on authentication? Not sure if anyone else has experienced this one.

I don't understand what you mean by "toggling of the new entry based on authentication" - can you please elaborate?

- Dave


> 
> Thanks,
> Van
> On Tue, Apr 5, 2011 at 10:30 PM, Dave <sn...@gmail.com> wrote:
> On Tue, Apr 5, 2011 at 4:02 PM, Van Rogers-Ho <va...@gmail.com> wrote:
> > One other detail I can add: I can also fix issue if I go to main blog that
> > serves as the front page and flush that cache.
> >
> > Go to that blog> Preferences tab> Maintenance> Flush Cache button.
> 
> I think that is expected behavior, the pages are not immediately
> updated when an aggregation completes. You have to wait for normal
> time out.
> 
> - Dave
> 
> 
> > On Tue, Apr 5, 2011 at 3:56 PM, Van Rogers-Ho <va...@gmail.com> wrote:
> >
> >> Hi,
> >>
> >> I'm seeing something odd where the home/front page recent posts are not
> >> reflecting new entries unless you are logged in. Some observations:
> >>
> >>
> >>    1. The new entry is in an existing blog.
> >>    2. I can see it OK under /planetrss *without* logging in.
> >>    3. clearing local cache *does not* fix it
> >>    4. Doing a site wide clearing of cache (server admin>Cache info>
> >>    cache.sitewide) *does* fix this and all users can see it.
> >>
> >> There is a job that runs every 6 hours,
> >> tasks.SyncWebsitesTask.interval=360. Is this what I would change to get
> >> quicker visibility of new posts? It seems odd that a logged in user and
> >> /planetrss are OK.
> >> Also, ROLLER.RAG_ENTRY does have the new entry.
> >>
> >> Essentially, new entry is in ROLLER.RAG_ENTRY, /planetrss and on front page
> >> (logged in). However, it takes a site wide cache flush to have guest see it.
> >>
> >> Thanks,
> >> Van
> >>
> >>
> >> *Enviroment:*
> >>
> >> I'm running 4.01, WLS 11g, Oracle DB
> >> The front page is standard:
> >>
> >> ## get pager over recent posts, uses planet aggregator
> >> #set($pager = $planet.getAggregationPager(14, $recentPosts))
> >> ...
> >>  #foreach($entry in $pager.items)
> >>     <div class="entry">
> >>     <h3><a
> >> href="$utils.escapeHTML($entry.permalink)">$utils.truncateNicely($utils.removeHTML($entry.title),
> >> 50, 50, "...")</a></h3>
> >>     <p class="entryDetails">
> >>         <a href="$utils.escapeHTML($entry.website.URL)">$utils.removeHTML($
> >> entry.website.name)</a>
> >>         #if($entry.category.name)| $entry.category.name #end
> >>         #if($entry.pubTime) | $utils.formatDate($entry.pubTime, "MMMM dd,
> >> hh:mm a zzz") #end
> >>         #if($entry.creator.userName)| By $entry.creator.userName #end
> >>         <br/>
> >>     </p>
> >>     <p class="entryDescription">
> >>         $utils.truncateNicely($utils.removeHTML($entry.text), 240, 260,
> >> "...")
> >>     </p>
> >>     </div>
> >>     #end
> >>
> >> In roller-custom.properties:
> >> # enable planet tasks
> >>
> >> tasks.enabled=ScheduledEntriesTask,ResetHitCountsTask,TurnoverReferersTask,\
> >> PingQueueTask,RefreshRollerPlanetTask,SyncWebsitesTask
> >>
> >> # config refresh entries task to run every 20 minutes
> >> tasks.RefreshRollerPlanetTask.startTime=immediate
> >> tasks.RefreshRollerPlanetTask.interval=20
> >> tasks.RefreshRollerPlanetTask.leaseTime=30
> >>
> >> # sync weblogs to aggregator 4 times daily
> >> tasks.SyncWebsitesTask.startTime=immediate
> >> tasks.SyncWebsitesTask.interval=360
> >> tasks.SyncWebsitesTask.leaseTime=30
> >>
> >>
> >>
> >
> 

Re: home page recent posts not reflecting planetrss

Posted by Van Rogers-Ho <va...@gmail.com>.
Hi Dave,

Is that normal timeout determined by any roller parameter, such as
tasks.SyncWebsitesTask.interval=360? Is there something that will
periodically clear cache of front page and reflect what's on /planetrss?

And why the toggling of the new entry based on authentication? Not sure if
anyone else has experienced this one.

Thanks,
Van
On Tue, Apr 5, 2011 at 10:30 PM, Dave <sn...@gmail.com> wrote:

> On Tue, Apr 5, 2011 at 4:02 PM, Van Rogers-Ho <va...@gmail.com>
> wrote:
> > One other detail I can add: I can also fix issue if I go to main blog
> that
> > serves as the front page and flush that cache.
> >
> > Go to that blog> Preferences tab> Maintenance> Flush Cache button.
>
> I think that is expected behavior, the pages are not immediately
> updated when an aggregation completes. You have to wait for normal
> time out.
>
> - Dave
>
>
> > On Tue, Apr 5, 2011 at 3:56 PM, Van Rogers-Ho <va...@gmail.com>
> wrote:
> >
> >> Hi,
> >>
> >> I'm seeing something odd where the home/front page recent posts are not
> >> reflecting new entries unless you are logged in. Some observations:
> >>
> >>
> >>    1. The new entry is in an existing blog.
> >>    2. I can see it OK under /planetrss *without* logging in.
> >>    3. clearing local cache *does not* fix it
> >>    4. Doing a site wide clearing of cache (server admin>Cache info>
>  >>    cache.sitewide) *does* fix this and all users can see it.
> >>
> >> There is a job that runs every 6 hours,
> >> tasks.SyncWebsitesTask.interval=360. Is this what I would change to get
> >> quicker visibility of new posts? It seems odd that a logged in user and
> >> /planetrss are OK.
> >> Also, ROLLER.RAG_ENTRY does have the new entry.
> >>
> >> Essentially, new entry is in ROLLER.RAG_ENTRY, /planetrss and on front
> page
> >> (logged in). However, it takes a site wide cache flush to have guest see
> it.
> >>
> >> Thanks,
> >> Van
> >>
> >>
> >> *Enviroment:*
> >>
> >> I'm running 4.01, WLS 11g, Oracle DB
> >> The front page is standard:
> >>
> >> ## get pager over recent posts, uses planet aggregator
> >> #set($pager = $planet.getAggregationPager(14, $recentPosts))
> >> ...
> >>  #foreach($entry in $pager.items)
> >>     <div class="entry">
> >>     <h3><a
> >>
> href="$utils.escapeHTML($entry.permalink)">$utils.truncateNicely($utils.removeHTML($entry.title),
> >> 50, 50, "...")</a></h3>
> >>     <p class="entryDetails">
> >>         <a
> href="$utils.escapeHTML($entry.website.URL)">$utils.removeHTML($
> >> entry.website.name)</a>
> >>         #if($entry.category.name)| $entry.category.name #end
> >>         #if($entry.pubTime) | $utils.formatDate($entry.pubTime, "MMMM
> dd,
> >> hh:mm a zzz") #end
> >>         #if($entry.creator.userName)| By $entry.creator.userName #end
> >>         <br/>
> >>     </p>
> >>     <p class="entryDescription">
> >>         $utils.truncateNicely($utils.removeHTML($entry.text), 240, 260,
> >> "...")
> >>     </p>
> >>     </div>
> >>     #end
> >>
> >> In roller-custom.properties:
> >> # enable planet tasks
> >>
> >>
> tasks.enabled=ScheduledEntriesTask,ResetHitCountsTask,TurnoverReferersTask,\
> >> PingQueueTask,RefreshRollerPlanetTask,SyncWebsitesTask
> >>
> >> # config refresh entries task to run every 20 minutes
> >> tasks.RefreshRollerPlanetTask.startTime=immediate
> >> tasks.RefreshRollerPlanetTask.interval=20
> >> tasks.RefreshRollerPlanetTask.leaseTime=30
> >>
> >> # sync weblogs to aggregator 4 times daily
> >> tasks.SyncWebsitesTask.startTime=immediate
> >> tasks.SyncWebsitesTask.interval=360
> >> tasks.SyncWebsitesTask.leaseTime=30
> >>
> >>
> >>
> >
>

Re: home page recent posts not reflecting planetrss

Posted by Dave <sn...@gmail.com>.
On Tue, Apr 5, 2011 at 4:02 PM, Van Rogers-Ho <va...@gmail.com> wrote:
> One other detail I can add: I can also fix issue if I go to main blog that
> serves as the front page and flush that cache.
>
> Go to that blog> Preferences tab> Maintenance> Flush Cache button.

I think that is expected behavior, the pages are not immediately
updated when an aggregation completes. You have to wait for normal
time out.

- Dave


> On Tue, Apr 5, 2011 at 3:56 PM, Van Rogers-Ho <va...@gmail.com> wrote:
>
>> Hi,
>>
>> I'm seeing something odd where the home/front page recent posts are not
>> reflecting new entries unless you are logged in. Some observations:
>>
>>
>>    1. The new entry is in an existing blog.
>>    2. I can see it OK under /planetrss *without* logging in.
>>    3. clearing local cache *does not* fix it
>>    4. Doing a site wide clearing of cache (server admin>Cache info>
>>    cache.sitewide) *does* fix this and all users can see it.
>>
>> There is a job that runs every 6 hours,
>> tasks.SyncWebsitesTask.interval=360. Is this what I would change to get
>> quicker visibility of new posts? It seems odd that a logged in user and
>> /planetrss are OK.
>> Also, ROLLER.RAG_ENTRY does have the new entry.
>>
>> Essentially, new entry is in ROLLER.RAG_ENTRY, /planetrss and on front page
>> (logged in). However, it takes a site wide cache flush to have guest see it.
>>
>> Thanks,
>> Van
>>
>>
>> *Enviroment:*
>>
>> I'm running 4.01, WLS 11g, Oracle DB
>> The front page is standard:
>>
>> ## get pager over recent posts, uses planet aggregator
>> #set($pager = $planet.getAggregationPager(14, $recentPosts))
>> ...
>>  #foreach($entry in $pager.items)
>>     <div class="entry">
>>     <h3><a
>> href="$utils.escapeHTML($entry.permalink)">$utils.truncateNicely($utils.removeHTML($entry.title),
>> 50, 50, "...")</a></h3>
>>     <p class="entryDetails">
>>         <a href="$utils.escapeHTML($entry.website.URL)">$utils.removeHTML($
>> entry.website.name)</a>
>>         #if($entry.category.name)| $entry.category.name #end
>>         #if($entry.pubTime) | $utils.formatDate($entry.pubTime, "MMMM dd,
>> hh:mm a zzz") #end
>>         #if($entry.creator.userName)| By $entry.creator.userName #end
>>         <br/>
>>     </p>
>>     <p class="entryDescription">
>>         $utils.truncateNicely($utils.removeHTML($entry.text), 240, 260,
>> "...")
>>     </p>
>>     </div>
>>     #end
>>
>> In roller-custom.properties:
>> # enable planet tasks
>>
>> tasks.enabled=ScheduledEntriesTask,ResetHitCountsTask,TurnoverReferersTask,\
>> PingQueueTask,RefreshRollerPlanetTask,SyncWebsitesTask
>>
>> # config refresh entries task to run every 20 minutes
>> tasks.RefreshRollerPlanetTask.startTime=immediate
>> tasks.RefreshRollerPlanetTask.interval=20
>> tasks.RefreshRollerPlanetTask.leaseTime=30
>>
>> # sync weblogs to aggregator 4 times daily
>> tasks.SyncWebsitesTask.startTime=immediate
>> tasks.SyncWebsitesTask.interval=360
>> tasks.SyncWebsitesTask.leaseTime=30
>>
>>
>>
>

Re: home page recent posts not reflecting planetrss

Posted by Van Rogers-Ho <va...@gmail.com>.
One other detail I can add: I can also fix issue if I go to main blog that
serves as the front page and flush that cache.

Go to that blog> Preferences tab> Maintenance> Flush Cache button.

Thanks,
Van

On Tue, Apr 5, 2011 at 3:56 PM, Van Rogers-Ho <va...@gmail.com> wrote:

> Hi,
>
> I'm seeing something odd where the home/front page recent posts are not
> reflecting new entries unless you are logged in. Some observations:
>
>
>    1. The new entry is in an existing blog.
>    2. I can see it OK under /planetrss *without* logging in.
>    3. clearing local cache *does not* fix it
>    4. Doing a site wide clearing of cache (server admin>Cache info>
>    cache.sitewide) *does* fix this and all users can see it.
>
> There is a job that runs every 6 hours,
> tasks.SyncWebsitesTask.interval=360. Is this what I would change to get
> quicker visibility of new posts? It seems odd that a logged in user and
> /planetrss are OK.
> Also, ROLLER.RAG_ENTRY does have the new entry.
>
> Essentially, new entry is in ROLLER.RAG_ENTRY, /planetrss and on front page
> (logged in). However, it takes a site wide cache flush to have guest see it.
>
> Thanks,
> Van
>
>
> *Enviroment:*
>
> I'm running 4.01, WLS 11g, Oracle DB
> The front page is standard:
>
> ## get pager over recent posts, uses planet aggregator
> #set($pager = $planet.getAggregationPager(14, $recentPosts))
> ...
>  #foreach($entry in $pager.items)
>     <div class="entry">
>     <h3><a
> href="$utils.escapeHTML($entry.permalink)">$utils.truncateNicely($utils.removeHTML($entry.title),
> 50, 50, "...")</a></h3>
>     <p class="entryDetails">
>         <a href="$utils.escapeHTML($entry.website.URL)">$utils.removeHTML($
> entry.website.name)</a>
>         #if($entry.category.name)| $entry.category.name #end
>         #if($entry.pubTime) | $utils.formatDate($entry.pubTime, "MMMM dd,
> hh:mm a zzz") #end
>         #if($entry.creator.userName)| By $entry.creator.userName #end
>         <br/>
>     </p>
>     <p class="entryDescription">
>         $utils.truncateNicely($utils.removeHTML($entry.text), 240, 260,
> "...")
>     </p>
>     </div>
>     #end
>
> In roller-custom.properties:
> # enable planet tasks
>
> tasks.enabled=ScheduledEntriesTask,ResetHitCountsTask,TurnoverReferersTask,\
> PingQueueTask,RefreshRollerPlanetTask,SyncWebsitesTask
>
> # config refresh entries task to run every 20 minutes
> tasks.RefreshRollerPlanetTask.startTime=immediate
> tasks.RefreshRollerPlanetTask.interval=20
> tasks.RefreshRollerPlanetTask.leaseTime=30
>
> # sync weblogs to aggregator 4 times daily
> tasks.SyncWebsitesTask.startTime=immediate
> tasks.SyncWebsitesTask.interval=360
> tasks.SyncWebsitesTask.leaseTime=30
>
>
>