You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by robin <ro...@adm-soft.com> on 2011/08/01 10:34:59 UTC

jetspeed cache refresh api

hi all

   i have wrote some code to add page, folder and store it into database, but portal didnot show changes immidiatly because portal get contents from cache, how can i refresh cache by invoking jetspeed API or other ways.

  thanks.

2011-08-01 



Best Regards
Robin Xie

Re: jetspeed cache refresh api

Posted by Jeff Pierce <ha...@gmail.com>.
Try calling reset() on PageManager.

    /**
     * reset - force subsequent refresh from persistent store
     */
    public void reset();


On Mon, Aug 1, 2011 at 3:34 AM, robin <ro...@adm-soft.com> wrote:
> hi all
>
>   i have wrote some code to add page, folder and store it into database, but portal didnot show changes immidiatly because portal get contents from cache, how can i refresh cache by invoking jetspeed API or other ways.
>
>  thanks.
>
> 2011-08-01
>
>
>
> Best Regards
> Robin Xie
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: jetspeed cache refresh api

Posted by Randy Watler <wa...@wispertel.net>.
Ideally, one would use the PageManager APIs to add pages and folders 
instead of writing directly to the DB. This will ensure that cache 
entries are not only updated on the node the writes are done on, but on 
all Jetspeed nodes in the cluster.

Jetspeed is not generally coded to accept data via DB writes while 
running for any part of the schema. In fact, writing to the DB while 
Jetspeed is running may lead to data integrity issues. This is why 
Jetspeed ETL operations are done via the build or installer scripts.

HTH,

Randy

On 8/1/2011 2:34 AM, robin wrote:
> hi all
>
>     i have wrote some code to add page, folder and store it into database, but portal didnot show changes immidiatly because portal get contents from cache, how can i refresh cache by invoking jetspeed API or other ways.
>
>    thanks.
>
> 2011-08-01
>
>
>
> Best Regards
> Robin Xie
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org