Re: [xwiki-users] xwiki render cache not working?

2012-12-13 Thread Thomas Mortagne
On Wed, Dec 12, 2012 at 11:21 AM, David Delbecq wrote:

>
> Well, that's a bit my problem there :/
>
> i don't want to encode every page as they are created. Restarting xwiki
> after each new page or even tracking the list of xwiki page can be a
> nightmare.
> On the other hand, i can't easily go on a space by space basis. Sure some
> spaces are pure xwiki content and no trouble at all, but most spaces will
> have pages here and there that must not be cached :(
>
> I guess i will have to disable cache for most of our xwiki then and only
> enable it on pages that have heavy load.
>
> Could you tell me why the xwiki 1 annotation to disable cache was not
> migrated to xwiki 2?
>

I don't know anything in xwiki/1.0 to disable cache.

Do you mean the velocity method to enable cache ? The cache macro is
supposed to cover more use cases. Producing the HTML does not cost much,
the cache is generally used to not execute again dynamic content.


>
> - Mail original -
>
> De: "Thomas Mortagne" 
> À: "XWiki Users" 
> Envoyé: Vendredi 7 Décembre 2012 16:44:12
> Objet: Re: [xwiki-users] xwiki render cache not working?
>
> On Fri, Dec 7, 2012 at 3:52 PM, David Delbecq  >wrote:
>
> > I still have sme question regarding glocal caching policy. If there is no
> > way on a specific page to disable cache, Does that mean if i ask to cache
> > "all page", administration pages will stop showing up to date
> informations?
> > What is the process in those pages, like group editor, search result, to
> > avoid caching of result and outdated datas?
> >
>
> Yes since that's the point of rendering cache. But you should not enable
> cache for everything and at least choice specific spaces if not pages.
>
>
> >
> > - Mail original -
> >
> > De: "Thomas Mortagne" 
> > À: "XWiki Users" 
> > Envoyé: Vendredi 7 Décembre 2012 10:30:29
> > Objet: Re: [xwiki-users] xwiki render cache not working?
> >
> > On Thu, Dec 6, 2012 at 2:45 PM, David Delbecq  > >wrote:
> >
> > >
> > > > You can also use cache macro (see
> > > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Cache+Macro) to
> > > choose
> > > > different timing for each contents.
> > >
> > > For what i read, it operates at a differente level, i caches the XDOM,
> > not
> > > the rendered content. I am pretty sure XDOM uses more space in memory
> > that
> > > a simple String, you still have the overhead of rendering operation and
> > you
> > > have to manually manage your cache key, which is far mor cumbersome
> thant
> > > saying xwiki "hey, cache this page for 5 minutes, ok?)
> >
> >
> >
> > > Moreover, documentation suggest to avoid haveing different timeToLive
> on
> > > different pages, because that's as much threads :s
> > >
> >
> > That's true only with JBoss Cache but not with Infinispan which is what
> is
> > used by default in recent XWiki versions.
> >
> >
> > >
> > > ___
> > > users mailing list
> > > users@xwiki.org
> > > http://lists.xwiki.org/mailman/listinfo/users
> > >
> >
> >
> >
> > --
> > Thomas Mortagne
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> --
> Thomas Mortagne
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki render cache not working?

2012-12-12 Thread David Delbecq

Well, that's a bit my problem there :/ 

i don't want to encode every page as they are created. Restarting xwiki after 
each new page or even tracking the list of xwiki page can be a nightmare. 
On the other hand, i can't easily go on a space by space basis. Sure some 
spaces are pure xwiki content and no trouble at all, but most spaces will have 
pages here and there that must not be cached :( 

I guess i will have to disable cache for most of our xwiki then and only enable 
it on pages that have heavy load. 

Could you tell me why the xwiki 1 annotation to disable cache was not migrated 
to xwiki 2? 

- Mail original -

De: "Thomas Mortagne"  
À: "XWiki Users"  
Envoyé: Vendredi 7 Décembre 2012 16:44:12 
Objet: Re: [xwiki-users] xwiki render cache not working? 

On Fri, Dec 7, 2012 at 3:52 PM, David Delbecq wrote: 

> I still have sme question regarding glocal caching policy. If there is no 
> way on a specific page to disable cache, Does that mean if i ask to cache 
> "all page", administration pages will stop showing up to date informations? 
> What is the process in those pages, like group editor, search result, to 
> avoid caching of result and outdated datas? 
> 

Yes since that's the point of rendering cache. But you should not enable 
cache for everything and at least choice specific spaces if not pages. 


> 
> - Mail original - 
> 
> De: "Thomas Mortagne"  
> À: "XWiki Users"  
> Envoyé: Vendredi 7 Décembre 2012 10:30:29 
> Objet: Re: [xwiki-users] xwiki render cache not working? 
> 
> On Thu, Dec 6, 2012 at 2:45 PM, David Delbecq  >wrote: 
> 
> > 
> > > You can also use cache macro (see 
> > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Cache+Macro) to 
> > choose 
> > > different timing for each contents. 
> > 
> > For what i read, it operates at a differente level, i caches the XDOM, 
> not 
> > the rendered content. I am pretty sure XDOM uses more space in memory 
> that 
> > a simple String, you still have the overhead of rendering operation and 
> you 
> > have to manually manage your cache key, which is far mor cumbersome thant 
> > saying xwiki "hey, cache this page for 5 minutes, ok?) 
> 
> 
> 
> > Moreover, documentation suggest to avoid haveing different timeToLive on 
> > different pages, because that's as much threads :s 
> > 
> 
> That's true only with JBoss Cache but not with Infinispan which is what is 
> used by default in recent XWiki versions. 
> 
> 
> > 
> > ___ 
> > users mailing list 
> > users@xwiki.org 
> > http://lists.xwiki.org/mailman/listinfo/users 
> > 
> 
> 
> 
> -- 
> Thomas Mortagne 
> ___ 
> users mailing list 
> users@xwiki.org 
> http://lists.xwiki.org/mailman/listinfo/users 
> 
> ___ 
> users mailing list 
> users@xwiki.org 
> http://lists.xwiki.org/mailman/listinfo/users 
> 



-- 
Thomas Mortagne 
___ 
users mailing list 
users@xwiki.org 
http://lists.xwiki.org/mailman/listinfo/users 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki render cache not working?

2012-12-07 Thread Thomas Mortagne
On Fri, Dec 7, 2012 at 3:52 PM, David Delbecq wrote:

> I still have sme question regarding glocal caching policy. If there is no
> way on a specific page to disable cache, Does that mean if i ask to cache
> "all page", administration pages will stop showing up to date informations?
> What is the process in those pages, like group editor, search result, to
> avoid caching of result and outdated datas?
>

Yes since that's the point of rendering cache. But you should not enable
cache for everything and at least choice specific spaces if not pages.


>
> - Mail original -
>
> De: "Thomas Mortagne" 
> À: "XWiki Users" 
> Envoyé: Vendredi 7 Décembre 2012 10:30:29
> Objet: Re: [xwiki-users] xwiki render cache not working?
>
> On Thu, Dec 6, 2012 at 2:45 PM, David Delbecq  >wrote:
>
> >
> > > You can also use cache macro (see
> > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Cache+Macro) to
> > choose
> > > different timing for each contents.
> >
> > For what i read, it operates at a differente level, i caches the XDOM,
> not
> > the rendered content. I am pretty sure XDOM uses more space in memory
> that
> > a simple String, you still have the overhead of rendering operation and
> you
> > have to manually manage your cache key, which is far mor cumbersome thant
> > saying xwiki "hey, cache this page for 5 minutes, ok?)
>
>
>
> > Moreover, documentation suggest to avoid haveing different timeToLive on
> > different pages, because that's as much threads :s
> >
>
> That's true only with JBoss Cache but not with Infinispan which is what is
> used by default in recent XWiki versions.
>
>
> >
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> --
> Thomas Mortagne
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki render cache not working?

2012-12-07 Thread David Delbecq

I still have some questions regarding glocal caching policy. If there is no way 
on a specific page to disable cache, Does that mean if i ask to cache "all 
page", administration pages will stop showing up to date informations? What is 
the process in those pages, like group editor, search result, to avoid caching 
of result and outdated datas? 

- Mail original -

De: "Thomas Mortagne"  
À: "XWiki Users"  
Envoyé: Vendredi 7 Décembre 2012 10:30:29 
Objet: Re: [xwiki-users] xwiki render cache not working? 

On Thu, Dec 6, 2012 at 2:45 PM, David Delbecq wrote: 

> 
> > You can also use cache macro (see 
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Cache+Macro) to 
> choose 
> > different timing for each contents. 
> 
> For what i read, it operates at a differente level, i caches the XDOM, not 
> the rendered content. I am pretty sure XDOM uses more space in memory that 
> a simple String, you still have the overhead of rendering operation and you 
> have to manually manage your cache key, which is far mor cumbersome thant 
> saying xwiki "hey, cache this page for 5 minutes, ok?) 



> Moreover, documentation suggest to avoid haveing different timeToLive on 
> different pages, because that's as much threads :s 
> 

That's true only with JBoss Cache but not with Infinispan which is what is 
used by default in recent XWiki versions. 


> 
> ___ 
> users mailing list 
> users@xwiki.org 
> http://lists.xwiki.org/mailman/listinfo/users 
> 



-- 
Thomas Mortagne 
___ 
users mailing list 
users@xwiki.org 
http://lists.xwiki.org/mailman/listinfo/users 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki render cache not working?

2012-12-07 Thread David Delbecq
I still have sme question regarding glocal caching policy. If there is no way 
on a specific page to disable cache, Does that mean if i ask to cache "all 
page", administration pages will stop showing up to date informations? What is 
the process in those pages, like group editor, search result, to avoid caching 
of result and outdated datas? 

- Mail original -

De: "Thomas Mortagne"  
À: "XWiki Users"  
Envoyé: Vendredi 7 Décembre 2012 10:30:29 
Objet: Re: [xwiki-users] xwiki render cache not working? 

On Thu, Dec 6, 2012 at 2:45 PM, David Delbecq wrote: 

> 
> > You can also use cache macro (see 
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Cache+Macro) to 
> choose 
> > different timing for each contents. 
> 
> For what i read, it operates at a differente level, i caches the XDOM, not 
> the rendered content. I am pretty sure XDOM uses more space in memory that 
> a simple String, you still have the overhead of rendering operation and you 
> have to manually manage your cache key, which is far mor cumbersome thant 
> saying xwiki "hey, cache this page for 5 minutes, ok?) 



> Moreover, documentation suggest to avoid haveing different timeToLive on 
> different pages, because that's as much threads :s 
> 

That's true only with JBoss Cache but not with Infinispan which is what is 
used by default in recent XWiki versions. 


> 
> ___ 
> users mailing list 
> users@xwiki.org 
> http://lists.xwiki.org/mailman/listinfo/users 
> 



-- 
Thomas Mortagne 
___ 
users mailing list 
users@xwiki.org 
http://lists.xwiki.org/mailman/listinfo/users 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki render cache not working?

2012-12-07 Thread Thomas Mortagne
On Fri, Dec 7, 2012 at 10:34 AM, Vincent Massol  wrote:

>
> On Dec 7, 2012, at 10:30 AM, Thomas Mortagne 
> wrote:
>
> > On Thu, Dec 6, 2012 at 2:45 PM, David Delbecq  >wrote:
> >
> >>
> >>> You can also use cache macro (see
> >>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Cache+Macro) to
> >> choose
> >>> different timing for each contents.
> >>
> >> For what i read, it operates at a differente level, i caches the XDOM,
> not
> >> the rendered content. I am pretty sure XDOM uses more space in memory
> that
> >> a simple String, you still have the overhead of rendering operation and
> you
> >> have to manually manage your cache key, which is far mor cumbersome
> thant
> >> saying xwiki "hey, cache this page for 5 minutes, ok?)
> >
> >
> >
> >> Moreover, documentation suggest to avoid haveing different timeToLive on
> >> different pages, because that's as much threads :s
> >>
> >
> > That's true only with JBoss Cache but not with Infinispan which is what
> is
> > used by default in recent XWiki versions.
>
> Then the documentation needs to be updated if you're sure of what you say.
>

There is "It should only be an issue when using JBoss Cache though and
since XWiki 3.3M1 we use Infinispan by default)." already in the
documentation.


>
> Thanks
> -Vincent
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki render cache not working?

2012-12-07 Thread Vincent Massol

On Dec 7, 2012, at 10:30 AM, Thomas Mortagne  wrote:

> On Thu, Dec 6, 2012 at 2:45 PM, David Delbecq wrote:
> 
>> 
>>> You can also use cache macro (see
>>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Cache+Macro) to
>> choose
>>> different timing for each contents.
>> 
>> For what i read, it operates at a differente level, i caches the XDOM, not
>> the rendered content. I am pretty sure XDOM uses more space in memory that
>> a simple String, you still have the overhead of rendering operation and you
>> have to manually manage your cache key, which is far mor cumbersome thant
>> saying xwiki "hey, cache this page for 5 minutes, ok?)
> 
> 
> 
>> Moreover, documentation suggest to avoid haveing different timeToLive on
>> different pages, because that's as much threads :s
>> 
> 
> That's true only with JBoss Cache but not with Infinispan which is what is
> used by default in recent XWiki versions.

Then the documentation needs to be updated if you're sure of what you say.

Thanks
-Vincent

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki render cache not working?

2012-12-07 Thread Thomas Mortagne
On Thu, Dec 6, 2012 at 2:45 PM, David Delbecq wrote:

>
> > You can also use cache macro (see
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Cache+Macro) to
> choose
> > different timing for each contents.
>
> For what i read, it operates at a differente level, i caches the XDOM, not
> the rendered content. I am pretty sure XDOM uses more space in memory that
> a simple String, you still have the overhead of rendering operation and you
> have to manually manage your cache key, which is far mor cumbersome thant
> saying xwiki "hey, cache this page for 5 minutes, ok?)



> Moreover, documentation suggest to avoid haveing different timeToLive on
> different pages, because that's as much threads :s
>

That's true only with JBoss Cache but not with Infinispan which is what is
used by default in recent XWiki versions.


>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki render cache not working?

2012-12-06 Thread David Delbecq

> You can also use cache macro (see 
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Cache+Macro) to choose 
> different timing for each contents. 

For what i read, it operates at a differente level, i caches the XDOM, not the 
rendered content. I am pretty sure XDOM uses more space in memory that a simple 
String, you still have the overhead of rendering operation and you have to 
manually manage your cache key, which is far mor cumbersome thant saying xwiki 
"hey, cache this page for 5 minutes, ok?) Moreover, documentation suggest to 
avoid haveing different timeToLive on different pages, because that's as much 
threads :s

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki render cache not working?

2012-12-06 Thread Thomas Mortagne
On Thu, Dec 6, 2012 at 1:26 PM, David Delbecq wrote:

>
>
>
>
>
> Rendering cache works well for me.
>
> Well, quite obviously, not for me :)
>
>
> First of all, not that your are mixing two different features here: what
> you find in xwiki.cfg and $context.setCacheDuration() are old caching
> system which is maintained for retro-compatibility reasons only in
> xwiki/1.0 syntax.
>
> If setCacheDuration does not work in xwiki 2, how do i specify per page
> cache rules? Going through the process of shuting down xwiki to adjust
> .properties for each page that requires cache disabling can quickly beocme
> a nightmare.
>

You can also use cache macro (see
http://extensions.xwiki.org/xwiki/bin/view/Extension/Cache+Macro) to choose
different timing for each contents.


>
>
>
> Now about the more generic rendering cache located in xwiki.properties, is
> your wiki name really "wiki" ? Because here you indicated that you wanted
> to cache all the pages in the wiki which has "wiki" as identifier. If you
> are in a single wiki mode (XWiki Enterprise for example) you can simply
> remove the wiki part as in
>
> core.renderingcache.documents=Space.Page
>
> I thought xwiki was the default wiki name :) However, here is adujsted
> config: still the same problem. As you can see, i asked to cache
> *everything* :)
>
> #-# [Since 2.4M1]
> #-# A list of Java regex patterns matching full documents reference.
> # core.renderingcache.documents=wiki:Space\.Page
> # core.renderingcache.documents=wiki:Space\..*
> core.renderingcache.documents=.*
>
> #-# [Since 2.4M1]
> #-# The time (in seconds) after which data should be removed from the
> cache when not used.
> #-# Default value is 300 (5 min).
> # core.renderingcache.duration=300
>
> #-# [Since 2.4M1]
> #-# The size of the rendering cache. Not that it's not the number of
> cached documents but the number of cached results.
> #-# (For a single document several cache entries are created, because each
> action, language and request query string
> #-# produces a unique rendering result)
> #-# Default value is 100.
> core.renderingcache.size=200
>

Did you kept core.renderingcache.enabled=true ?


>
> Here is my log output, if that can be of any use:
> 12:15:44,611 INFO [stdout] (
> http://someServer.meteo.be:10080/xwiki/bin/view/Configuration/PhoneMacro?menu=SomeSpace.Menu&xpage=plain)
> ***phone menu not in cache
> 12:15:45,327 WARN [org.apache.struts.util.RequestUtils] (
> http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/Menu/edit%2Dfind.png)
> No FormBeanConfig found under 'download'
> 12:15:45,342 WARN [org.apache.struts.util.RequestUtils] (
> http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/PhoneMenuStylesheet/back.png)
> No FormBeanConfig found under 'download'
> 12:15:45,327 WARN [org.apache.struts.util.RequestUtils] (
> http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/PhoneMenuStylesheet/document.png)
> No FormBeanConfig found under 'download'
> 12:15:59,560 WARN [org.apache.struts.util.RequestUtils] (
> http://someServer.meteo.be:10080/xwiki/bin/view/Configuration/PhoneMacro?menu=SomeSpace.Menu&xpage=plain)
> No FormBeanConfig found under 'view'
> 12:16:00,377 INFO [stdout] (
> http://someServer.meteo.be:10080/xwiki/bin/view/Configuration/PhoneMacro?menu=SomeSpace.Menu&xpage=plain)
> ***phone menu not in cache
> 12:16:00,496 WARN [org.apache.struts.util.RequestUtils] (
> http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/Menu/edit%2Dfind.png)
> No FormBeanConfig found under 'download'
> 12:16:00,497 WARN [org.apache.struts.util.RequestUtils] (
> http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/PhoneMenuStylesheet/document.png)
> No FormBeanConfig found under 'download'
> 12:16:00,496 WARN [org.apache.struts.util.RequestUtils] (
> http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/PhoneMenuStylesheet/back.png)
> No FormBeanConfig found under 'download'
> 12:19:06,714 WARN [org.apache.struts.util.RequestUtils] (
> http://someServer.meteo.be:10080/xwiki/bin/view/Configuration/PhoneMacro?menu=SomeSpace.Menu&xpage=plain)
> No FormBeanConfig found under 'view'
> 12:19:07,520 INFO [stdout] (
> http://someServer.meteo.be:10080/xwiki/bin/view/Configuration/PhoneMacro?menu=SomeSpace.Menu&xpage=plain)
> ***phone menu not in cache
> 12:19:07,601 WARN [org.apache.struts.util.RequestUtils] (
> http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/PhoneMenuStylesheet/document.png)
> No FormBeanConfig found under 'download'
> 12:19:07,609 WARN [org.apache.struts.util.RequestUtils] (
> http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/Menu/edit%2Dfind.png)
> No FormBeanConfig found under 'download'
> 12:19:07,647 WARN [org.apache.struts.util.RequestUtils] (
> http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/PhoneMenuStylesheet/back.png)
> No Form

Re: [xwiki-users] xwiki render cache not working?

2012-12-06 Thread David Delbecq





Rendering cache works well for me. 

Well, quite obviously, not for me :) 


First of all, not that your are mixing two different features here: what 
you find in xwiki.cfg and $context.setCacheDuration() are old caching 
system which is maintained for retro-compatibility reasons only in 
xwiki/1.0 syntax. 

If setCacheDuration does not work in xwiki 2, how do i specify per page cache 
rules? Going through the process of shuting down xwiki to adjust .properties 
for each page that requires cache disabling can quickly beocme a nightmare. 




Now about the more generic rendering cache located in xwiki.properties, is 
your wiki name really "wiki" ? Because here you indicated that you wanted 
to cache all the pages in the wiki which has "wiki" as identifier. If you 
are in a single wiki mode (XWiki Enterprise for example) you can simply 
remove the wiki part as in 

core.renderingcache.documents=Space.Page 

I thought xwiki was the default wiki name :) However, here is adujsted config: 
still the same problem. As you can see, i asked to cache *everything* :) 

#-# [Since 2.4M1] 
#-# A list of Java regex patterns matching full documents reference. 
# core.renderingcache.documents=wiki:Space\.Page 
# core.renderingcache.documents=wiki:Space\..* 
core.renderingcache.documents=.* 

#-# [Since 2.4M1] 
#-# The time (in seconds) after which data should be removed from the cache 
when not used. 
#-# Default value is 300 (5 min). 
# core.renderingcache.duration=300 

#-# [Since 2.4M1] 
#-# The size of the rendering cache. Not that it's not the number of cached 
documents but the number of cached results. 
#-# (For a single document several cache entries are created, because each 
action, language and request query string 
#-# produces a unique rendering result) 
#-# Default value is 100. 
core.renderingcache.size=200 


Here is my log output, if that can be of any use: 
12:15:44,611 INFO [stdout] 
(http://someServer.meteo.be:10080/xwiki/bin/view/Configuration/PhoneMacro?menu=SomeSpace.Menu&xpage=plain)
 ***phone menu not in cache 
12:15:45,327 WARN [org.apache.struts.util.RequestUtils] 
(http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/Menu/edit%2Dfind.png)
 No FormBeanConfig found under 'download' 
12:15:45,342 WARN [org.apache.struts.util.RequestUtils] 
(http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/PhoneMenuStylesheet/back.png)
 No FormBeanConfig found under 'download' 
12:15:45,327 WARN [org.apache.struts.util.RequestUtils] 
(http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/PhoneMenuStylesheet/document.png)
 No FormBeanConfig found under 'download' 
12:15:59,560 WARN [org.apache.struts.util.RequestUtils] 
(http://someServer.meteo.be:10080/xwiki/bin/view/Configuration/PhoneMacro?menu=SomeSpace.Menu&xpage=plain)
 No FormBeanConfig found under 'view' 
12:16:00,377 INFO [stdout] 
(http://someServer.meteo.be:10080/xwiki/bin/view/Configuration/PhoneMacro?menu=SomeSpace.Menu&xpage=plain)
 ***phone menu not in cache 
12:16:00,496 WARN [org.apache.struts.util.RequestUtils] 
(http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/Menu/edit%2Dfind.png)
 No FormBeanConfig found under 'download' 
12:16:00,497 WARN [org.apache.struts.util.RequestUtils] 
(http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/PhoneMenuStylesheet/document.png)
 No FormBeanConfig found under 'download' 
12:16:00,496 WARN [org.apache.struts.util.RequestUtils] 
(http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/PhoneMenuStylesheet/back.png)
 No FormBeanConfig found under 'download' 
12:19:06,714 WARN [org.apache.struts.util.RequestUtils] 
(http://someServer.meteo.be:10080/xwiki/bin/view/Configuration/PhoneMacro?menu=SomeSpace.Menu&xpage=plain)
 No FormBeanConfig found under 'view' 
12:19:07,520 INFO [stdout] 
(http://someServer.meteo.be:10080/xwiki/bin/view/Configuration/PhoneMacro?menu=SomeSpace.Menu&xpage=plain)
 ***phone menu not in cache 
12:19:07,601 WARN [org.apache.struts.util.RequestUtils] 
(http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/PhoneMenuStylesheet/document.png)
 No FormBeanConfig found under 'download' 
12:19:07,609 WARN [org.apache.struts.util.RequestUtils] 
(http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/Menu/edit%2Dfind.png)
 No FormBeanConfig found under 'download' 
12:19:07,647 WARN [org.apache.struts.util.RequestUtils] 
(http://someServer.meteo.be:10080/xwiki/bin/download/Configuration/PhoneMenuStylesheet/back.png)
 No FormBeanConfig found under 'download' 
12:19:09,749 WARN [org.apache.struts.util.RequestUtils] 
(http://someServer.meteo.be:10080/xwiki/bin/view/Configuration/PhoneMacro?menu=SomeSpace.Menu&xpage=plain)
 No FormBeanConfig found under 'view' 
12:19:10,440 INFO [stdout] 
(http://someServer.meteo.be:10080/xwiki/bin/view/Configuration/PhoneMacro?menu=SomeSpace.Menu&xpage=plain

Re: [xwiki-users] xwiki render cache not working?

2012-12-05 Thread Thomas Mortagne
On Wed, Dec 5, 2012 at 3:29 PM, David Delbecq wrote:

> Hello,
>
> i have a specific wiki page that is quite slow to render because some
> groovy code and macros in there are quite slow. Fortunately, content does
> not change often, si i tried to make it faster for user by using cache
> rendering.
>
> Here is what is inside my xwiki.cfg:
>
>
> xwiki.rendering.defaultCacheDuration=3600
>
> And here is my xwiki.properties
>
>
> core.renderingcache.enabled=true
> core.renderingcache.documents=wiki:.*
> core.renderingcache.size=200
> # Default value is 300 (5 min).
> # core.renderingcache.duration=300
>
> I have also this inside my page:
>
>
> {{velocity}}
> $context.setCacheDuration(60)
> //complex content here that has a custom groovy macro and a velocity
> include
> {{/velocity}}
>
>
> {{groovy}}
> System.out.println("***phone menu not
> in cache")
> {{/groovy}}
>
>
> And i see in my log that, everytime, the System.out is executed, meaning
> the render cache is not used. What's my configuration problem? What did i
> miss?
>
> Note: using xwiki 4.1.2 and the url i try is
> http://server/xwiki/bin/view/MySpace/MyPage?menu=Test.Menu&xpage=plain
>
>
Thank you.
>
> David Delbecq
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>

Rendering cache works well for me.

First of all, not that your are mixing two different features here: what
you find in xwiki.cfg and $context.setCacheDuration() are old caching
system which is maintained for retro-compatibility reasons only in
xwiki/1.0 syntax.

Now about the more generic rendering cache located in xwiki.properties, is
your wiki name really "wiki" ? Because here you indicated that you wanted
to cache all the pages in the wiki which has "wiki" as identifier. If you
are in a single wiki mode (XWiki Enterprise for example) you can simply
remove the wiki part as in

core.renderingcache.documents=Space.Page

-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] xwiki render cache not working?

2012-12-05 Thread David Delbecq
Hello, 

i have a specific wiki page that is quite slow to render because some groovy 
code and macros in there are quite slow. Fortunately, content does not change 
often, si i tried to make it faster for user by using cache rendering. 

Here is what is inside my xwiki.cfg: 


xwiki.rendering.defaultCacheDuration=3600 

And here is my xwiki.properties 


core.renderingcache.enabled=true 
core.renderingcache.documents=wiki:.* 
core.renderingcache.size=200 
# Default value is 300 (5 min). 
# core.renderingcache.duration=300 

I have also this inside my page: 


{{velocity}} 
$context.setCacheDuration(60) 
//complex content here that has a custom groovy macro and a velocity include 
{{/velocity}} 


{{groovy}} 
System.out.println("***phone menu not in 
cache") 
{{/groovy}} 


And i see in my log that, everytime, the System.out is executed, meaning the 
render cache is not used. What's my configuration problem? What did i miss? 

Note: using xwiki 4.1.2 and the url i try is 
http://server/xwiki/bin/view/MySpace/MyPage?menu=Test.Menu&xpage=plain 

Thank you. 

David Delbecq 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users