Optimizing Plone Performance
This Tutorial applies to:
Any version.
This Tutorial is intended for:
Server Administrators
limi
All content on one page (useful for printing, presentation mode etc.)
- Introduction, goals and credits What this tutorial does and does not cover, and who's responsible for it.
- Common elements to caching A brief explanation about what we are going to set up.
- Caching setup using Apache 1.3 How to make the server ready to cache - using Apache 1.3.
- Caching setup using Apache 2.0 How to set up the caching using Apache 2.0.
- Deciding what to cache What content can be cached, and how do you set it up for an optimal experience?
Allow Plone to cache pages
By default, most dynamic Plone objects, like documents, are not cacheable. One needs to enable caching page templates by editing page template metadata in Zope management interface.
For example, my site front page was Page (ATDocument) and it was not cached until I set cache=HTTPCache for document_view in ZMI.
For more information about caching with Plone, see Plone Book chapter 14: http://www.jazkarta.com/technology/plone/plonebook/ch14.rst
Go to Zope management interface, portal_skins -> plone_content -> document_view. Click Cache tab and set cache to HTTPCache.
Actually, I believe CacheFu fixes this?
This tutorial really needs to be updated with current best-practices, though. :)
can this be updated?
I'd love to see an updated version of this, in addition to options for enabling caching with RewriteRule directives instead of reverse-proxies.
Setting allowed proxy domains
By default, Apache 2 blocks proxy requests from every IP. To make mod_proxy work, you need to allow proxy requests from localhost.
Edit /etc/apache2/mods-available/proxy.conf:
<Proxy *> Order deny,allow Deny from all #Allow from .your_domain.com Allow from mymachine.some.net </Proxy>