Re: [xwiki-users] xwiki render cache not working?
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
On Thu, Dec 6, 2012 at 2:45 PM, David Delbecq <david.delbecq@meteo.be>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
On Dec 7, 2012, at 10:30 AM, Thomas Mortagne <thomas.mortagne@xwiki.com> wrote:
On Thu, Dec 6, 2012 at 2:45 PM, David Delbecq <david.delbecq@meteo.be>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
On Fri, Dec 7, 2012 at 10:34 AM, Vincent Massol <vincent@massol.net> wrote:
On Dec 7, 2012, at 10:30 AM, Thomas Mortagne <thomas.mortagne@xwiki.com> wrote:
On Thu, Dec 6, 2012 at 2:45 PM, David Delbecq <david.delbecq@meteo.be 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
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" <thomas.mortagne@xwiki.com> À: "XWiki Users" <users@xwiki.org> 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 <david.delbecq@meteo.be>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
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" <thomas.mortagne@xwiki.com> À: "XWiki Users" <users@xwiki.org> 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 <david.delbecq@meteo.be>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
On Fri, Dec 7, 2012 at 3:52 PM, David Delbecq <david.delbecq@meteo.be>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" <thomas.mortagne@xwiki.com> À: "XWiki Users" <users@xwiki.org> 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 <david.delbecq@meteo.be
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
participants (3)
-
David Delbecq -
Thomas Mortagne -
Vincent Massol