Search code examples
aemdispatcher

How can i make AEM component 'un-cached' in the dispatcher


I wish to make a specific AEM component un-cached in the dispatcher. Can anyone let me know, how this can be implemented?

Thanks in Advance!


Solution

  • Dispatcher caches page level information as it has no knowledge about components and constructs of the pages.

    What you are looking for is something called 'Service Side Include' or more aptly for AEM, 'Sling Dynamic Include'. This is more to do with Apache server rather than dispatcher.

    In a nutshell, you program your pages to have place holders for pulling in cached fragments. The page cache then becomes independent of of the component cache and performs more efficiently as a whole.

    Read the article for more details.