SlideShare a Scribd company logo
1 of 13
Download to read offline
HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE


                                          Hippo's 10 Golden Rules
                                          of Cocoon Caching


                            Ard Schrijvers
                            Bart van der Schans
                            Niels van Kampenhout


                            Hippo
                            www.hippocms.org

hippo open source content management software - www.hippocms.org                           Cocoon GetTogether 2006
HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE


                                          Hippo's 10 Golden Rules
                                          of Cocoon Caching
         Many questions on user list
     ●


         You know <map:pipeline type=quot;caching''>
     ●


         But it's not that simple
     ●


         Best practices
     ●




                                                                   http://flickr.com/photos/st3f4n/143623934/

hippo open source content management software - www.hippocms.org                                                Cocoon GetTogether 2006
HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE


                                          Design For Performance

         Do it from the start
     ●


         Later is too late!
     ●


         Don't delay it
     ●




                                                                   http://flickr.com/photos/jacksim/16499469/

hippo open source content management software - www.hippocms.org                                                Cocoon GetTogether 2006
HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE


                                          Monitor Performance
                                          From The Start
         Check after each change
     ●


         See mistakes early
     ●


         Use real life data sets
     ●




                                                                   http://flickr.com/photos/redmann/178322027/


hippo open source content management software - www.hippocms.org                                                 Cocoon GetTogether 2006
HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE


                                          Cache As Much As
                                          Possible
         But nothing more!
     ●


         Don't pollute cache
     ●




                                                                   http://flickr.com/photos/eleda/104669470/



hippo open source content management software - www.hippocms.org                                               Cocoon GetTogether 2006
HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE


                                          Cache As Long As
                                          Possible
         But not too long!
     ●


         Do not let your cache grow forever
     ●




                                                             http://flickr.com/photos/wester/55116385/


hippo open source content management software - www.hippocms.org                                         Cocoon GetTogether 2006
HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE


                                          Design Your Pipelines
                                          For Caching
         Group pipelines by cacheability
     ●


         Avoid trigger effect
     ●


         Do non-cacheable stuff last
     ●




                                                                   http://flickr.com/photos/toni-travels/168819883/


hippo open source content management software - www.hippocms.org                                                      Cocoon GetTogether 2006
HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE


                                          Choose The Right Type
                                          Of Caching
         Caching
     ●


         Expires Caching
     ●


         Event Caching
     ●




                                                                       http://flickr.com/photos/lonelyradio/83752690/

hippo open source content management software - www.hippocms.org                                          Cocoon GetTogether 2006
HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE


                                          Control Your Cache
                                          Keys
         Think about uniqueness
     ●


         Avoid duplicate cache entries
     ●


         Check Cocoon status page
     ●


         Do not use “use-request-params”!
     ●




                                                                   http://flickr.com/photos/aeroworks/90124673/

hippo open source content management software - www.hippocms.org                                                  Cocoon GetTogether 2006
HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE


                                          Know What To Cache
                                          Where
         Reduce load on Cocoon
     ●


         From browser to proxy to
     ●

         Cocoon
         Closer to client is faster
     ●


         Cache by content type
     ●




                                                                       http://flickr.com/photos/tarantulastar/35842372/

hippo open source content management software - www.hippocms.org                                          Cocoon GetTogether 2006
HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE


                                          Make HTTP Headers
                                          Work For You
         Modified headers
     ●


         Expires headers
     ●


         Pragma and
     ●

         Cache-Control
         Click, F5, Ctrl+F5
     ●




                                                           http://flickr.com/photos/gregor_y/38130652/

hippo open source content management software - www.hippocms.org                                         Cocoon GetTogether 2006
HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE


                                          Do Not Trust The
                                          Outside World
         Proxies are out there
     ●


         Don't use browser selector
     ●


         Educate users
     ●




                                                                   http://flickr.com/photos/ianbline/96643546/

hippo open source content management software - www.hippocms.org                                                 Cocoon GetTogether 2006
HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE


                                          Hippo's 10 Golden Rules
                                          of Cocoon Caching
         Design For Performance
     ●



         Monitor Performance From The Start
     ●



         Cache As Much As Possible
     ●



         Cache As Long As Possible
     ●



         Design Your Pipelines For Caching
     ●



         Choose The Right Type Of Caching
     ●



         Control Your Cache Keys
     ●



         Know What To Cache Where
     ●



         Make HTTP Headers Work For You
     ●



         Do Not Trust The Outside World
     ●




hippo open source content management software - www.hippocms.org                           Cocoon GetTogether 2006

More Related Content

Viewers also liked (20)

Mac Intyre - aurkezpena euskaraz
Mac Intyre - aurkezpena euskarazMac Intyre - aurkezpena euskaraz
Mac Intyre - aurkezpena euskaraz
 
Imagenesparaamigos2
Imagenesparaamigos2Imagenesparaamigos2
Imagenesparaamigos2
 
Yo Quiero
Yo QuieroYo Quiero
Yo Quiero
 
20 Toi
20 Toi20 Toi
20 Toi
 
Learning To Love Forms Webvisions 07 21033
Learning To Love Forms Webvisions 07 21033Learning To Love Forms Webvisions 07 21033
Learning To Love Forms Webvisions 07 21033
 
Final
FinalFinal
Final
 
Meet The Staff 07
Meet The Staff 07Meet The Staff 07
Meet The Staff 07
 
Intro Presentation
Intro Presentation Intro Presentation
Intro Presentation
 
071011 Argumentari Pressupostos 2008
071011 Argumentari Pressupostos 2008071011 Argumentari Pressupostos 2008
071011 Argumentari Pressupostos 2008
 
Mobilix Presentation Complete
Mobilix  Presentation    CompleteMobilix  Presentation    Complete
Mobilix Presentation Complete
 
Por Que Se Quedan (Amt)
Por Que Se Quedan (Amt)Por Que Se Quedan (Amt)
Por Que Se Quedan (Amt)
 
L R U G - JRuby
L R U G - JRubyL R U G - JRuby
L R U G - JRuby
 
Meet The Staff 07
Meet The Staff 07Meet The Staff 07
Meet The Staff 07
 
ella
ellaella
ella
 
Aetc07.2
Aetc07.2Aetc07.2
Aetc07.2
 
Anita Sempels
Anita SempelsAnita Sempels
Anita Sempels
 
Alex Mungia eta Xabier Elortza - Mintegiko aurkezpena
Alex Mungia eta Xabier Elortza - Mintegiko aurkezpenaAlex Mungia eta Xabier Elortza - Mintegiko aurkezpena
Alex Mungia eta Xabier Elortza - Mintegiko aurkezpena
 
RhôNe Bridge
RhôNe BridgeRhôNe Bridge
RhôNe Bridge
 
Presentacion Final
Presentacion Final Presentacion Final
Presentacion Final
 
Ferran Suay - Hitzaldiko aurkezpena katalanez
Ferran Suay - Hitzaldiko aurkezpena katalanezFerran Suay - Hitzaldiko aurkezpena katalanez
Ferran Suay - Hitzaldiko aurkezpena katalanez
 

Similar to 10 Golden Rules of Cocoon Caching

The Squishy Future of Content - Key Communicators Edition
The Squishy Future of Content - Key Communicators EditionThe Squishy Future of Content - Key Communicators Edition
The Squishy Future of Content - Key Communicators Edition
Dave Olsen
 
Top Issues to Tackle.doc
Top Issues to Tackle.docTop Issues to Tackle.doc
Top Issues to Tackle.doc
007007dinesh
 

Similar to 10 Golden Rules of Cocoon Caching (17)

PHP Ecosystem and Best Practices
PHP Ecosystem and Best PracticesPHP Ecosystem and Best Practices
PHP Ecosystem and Best Practices
 
VelocityConf EU 2013 - Turbocharge your mobile web apps by using offline
VelocityConf EU 2013 - Turbocharge your mobile web apps by using offline VelocityConf EU 2013 - Turbocharge your mobile web apps by using offline
VelocityConf EU 2013 - Turbocharge your mobile web apps by using offline
 
The Squishy Future of Content - Key Communicators Edition
The Squishy Future of Content - Key Communicators EditionThe Squishy Future of Content - Key Communicators Edition
The Squishy Future of Content - Key Communicators Edition
 
Log everything!
Log everything!Log everything!
Log everything!
 
Empowering Next Generation Media
Empowering Next Generation MediaEmpowering Next Generation Media
Empowering Next Generation Media
 
History Boxes
History BoxesHistory Boxes
History Boxes
 
Top Issues to Tackle.doc
Top Issues to Tackle.docTop Issues to Tackle.doc
Top Issues to Tackle.doc
 
NY WebPerf Sept '22 - Performance Mistakes - An HTTP Archive Deep Dive
NY WebPerf Sept '22 - Performance Mistakes - An HTTP Archive Deep DiveNY WebPerf Sept '22 - Performance Mistakes - An HTTP Archive Deep Dive
NY WebPerf Sept '22 - Performance Mistakes - An HTTP Archive Deep Dive
 
A web perf dashboard up & running in 90 minutes presentation
A web perf dashboard up & running in 90 minutes presentationA web perf dashboard up & running in 90 minutes presentation
A web perf dashboard up & running in 90 minutes presentation
 
Develop:BBC 2013 - Turbocharge your mobile web apps by using offline
Develop:BBC 2013 - Turbocharge your mobile web apps by using offlineDevelop:BBC 2013 - Turbocharge your mobile web apps by using offline
Develop:BBC 2013 - Turbocharge your mobile web apps by using offline
 
Enhancing Education with Podcasting
Enhancing Education with PodcastingEnhancing Education with Podcasting
Enhancing Education with Podcasting
 
Enhancing Education with Podcasting
Enhancing Education with PodcastingEnhancing Education with Podcasting
Enhancing Education with Podcasting
 
Python x Django
Python x DjangoPython x Django
Python x Django
 
Old Dogs and New Tricks
Old Dogs and New TricksOld Dogs and New Tricks
Old Dogs and New Tricks
 
P Hundamental Security Coding Secure With Php Lamp
P Hundamental Security Coding Secure With Php LampP Hundamental Security Coding Secure With Php Lamp
P Hundamental Security Coding Secure With Php Lamp
 
Introduction to IPython & Notebook
Introduction to IPython & NotebookIntroduction to IPython & Notebook
Introduction to IPython & Notebook
 
2010 py ohio supervisor talk
2010 py ohio supervisor talk2010 py ohio supervisor talk
2010 py ohio supervisor talk
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 

10 Golden Rules of Cocoon Caching

  • 1. HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE Hippo's 10 Golden Rules of Cocoon Caching Ard Schrijvers Bart van der Schans Niels van Kampenhout Hippo www.hippocms.org hippo open source content management software - www.hippocms.org Cocoon GetTogether 2006
  • 2. HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE Hippo's 10 Golden Rules of Cocoon Caching Many questions on user list ● You know <map:pipeline type=quot;caching''> ● But it's not that simple ● Best practices ● http://flickr.com/photos/st3f4n/143623934/ hippo open source content management software - www.hippocms.org Cocoon GetTogether 2006
  • 3. HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE Design For Performance Do it from the start ● Later is too late! ● Don't delay it ● http://flickr.com/photos/jacksim/16499469/ hippo open source content management software - www.hippocms.org Cocoon GetTogether 2006
  • 4. HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE Monitor Performance From The Start Check after each change ● See mistakes early ● Use real life data sets ● http://flickr.com/photos/redmann/178322027/ hippo open source content management software - www.hippocms.org Cocoon GetTogether 2006
  • 5. HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE Cache As Much As Possible But nothing more! ● Don't pollute cache ● http://flickr.com/photos/eleda/104669470/ hippo open source content management software - www.hippocms.org Cocoon GetTogether 2006
  • 6. HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE Cache As Long As Possible But not too long! ● Do not let your cache grow forever ● http://flickr.com/photos/wester/55116385/ hippo open source content management software - www.hippocms.org Cocoon GetTogether 2006
  • 7. HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE Design Your Pipelines For Caching Group pipelines by cacheability ● Avoid trigger effect ● Do non-cacheable stuff last ● http://flickr.com/photos/toni-travels/168819883/ hippo open source content management software - www.hippocms.org Cocoon GetTogether 2006
  • 8. HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE Choose The Right Type Of Caching Caching ● Expires Caching ● Event Caching ● http://flickr.com/photos/lonelyradio/83752690/ hippo open source content management software - www.hippocms.org Cocoon GetTogether 2006
  • 9. HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE Control Your Cache Keys Think about uniqueness ● Avoid duplicate cache entries ● Check Cocoon status page ● Do not use “use-request-params”! ● http://flickr.com/photos/aeroworks/90124673/ hippo open source content management software - www.hippocms.org Cocoon GetTogether 2006
  • 10. HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE Know What To Cache Where Reduce load on Cocoon ● From browser to proxy to ● Cocoon Closer to client is faster ● Cache by content type ● http://flickr.com/photos/tarantulastar/35842372/ hippo open source content management software - www.hippocms.org Cocoon GetTogether 2006
  • 11. HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE Make HTTP Headers Work For You Modified headers ● Expires headers ● Pragma and ● Cache-Control Click, F5, Ctrl+F5 ● http://flickr.com/photos/gregor_y/38130652/ hippo open source content management software - www.hippocms.org Cocoon GetTogether 2006
  • 12. HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE Do Not Trust The Outside World Proxies are out there ● Don't use browser selector ● Educate users ● http://flickr.com/photos/ianbline/96643546/ hippo open source content management software - www.hippocms.org Cocoon GetTogether 2006
  • 13. HIPPO OPEN SOURCE CONTENT MANAGEMENT SOFTWARE Hippo's 10 Golden Rules of Cocoon Caching Design For Performance ● Monitor Performance From The Start ● Cache As Much As Possible ● Cache As Long As Possible ● Design Your Pipelines For Caching ● Choose The Right Type Of Caching ● Control Your Cache Keys ● Know What To Cache Where ● Make HTTP Headers Work For You ● Do Not Trust The Outside World ● hippo open source content management software - www.hippocms.org Cocoon GetTogether 2006