Hi Sivakumar, Yes, magnolia will cache your pages. You can configure an exclusion rule for the page containing your dynamic components in the cache configuration to make sure the page is not cached. Needless to say, you have to do that on the public system.
We tend to follow a different pattern for dynamic content: We render the page initially using placeholders for the dynamic content, and fetch the dynamic content using AJAX. The AJAX calls use the direct component access feature to request directly the components containing the dynamic content. We use template variations to have to variants of the dynamic components: the normal variant, which renders the placeholder, and the ".ajax" variant, which renders the dynamic content. By including a parameter in the AJAX request, we ensure that the cache is circumvented for the ".ajax" calls. We like this pattern because it means the main page can be cached normally, and is delivered quickly to the user (immediate feedback). The dynamic components are loaded a bit later, but the user sees a "spinner" to let him know stuff is happening. It also means the dynamic component can be reloaded easily without having to reload the whole page. Regards from Vienna, Richard -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Sivakumar (via Magnolia Forums) Gesendet: Dienstag, 20. November 2012 06:42 An: Magnolia User List Betreff: [magnolia-user] How to ignore the page/component from magnolia cache Hi , I have created a web page in magnolia. The behaviour of few components are to display the dynamic value which is coming from server. The issue is, [b][u]entire page has been cached by magnolia including that dynamic component[/u][/b]. Hence we didn’t get the dynamic value for that component. Every time we are getting the same value which is already cached by magnolia. Is there any way to ignore the component/page from magnolia caching? I tried with the following two different configurations. But there is no effect. Still the page is getting cached by magnolia. The configurations are: [code]+ modules + cache + config + configurations + default + cachePolicy + voters + urls + excludes -[b]ourComponent[/b] o info.magnolia.voting.voters.URIStartsWithVoter o/promos/features/our-component[/code] We also tried the following: [code]+ modules + cache + config + configurations + default + cachePolicy + voters + deny -[b]ourCcomponent[/b] oinfo.magnolia.voting.voters.URIStartsWithVoter o/promos/features/our-component[/code] Please help me. -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=a08e6089-245f-4d43-b11d-d6ec0053d6db ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
