Production Guide

PagodaCMS is designed for speed!

  1. Serve static files with a fast front-end (like Apache)! To have Apache serve your toscawidgets as static files, check out our mod_rewrite_mapper
  1. Configure your front-end web server to set your X-Pagoda-Site http header to the appropriate site name for the requested domain, and disable the PagodaSiteFilter. (add documentation!)
  1. Configure server-side caching (such as Apache 2.2 caching)
  1. Configure your front-end web server to gzip files on their way to the browser. (for Apache 2, use mod_deflate)
  1. Configure your front-end web server to use "Expires" http headers (see YSlow documentation) set to 10 years in the future, so browsers will cache your static files. Make sure to include version numbers in all file names so new versions will get downloaded appropriately.
  1. Minify JavaScript! (use Packer or JSMin). Getting errors? Make sure you have braces in your if/else statements, semicolons after every line (even function definitions), and if you're using Eval() in a function you'll have to go in to the minified javascript and change what's inside the Eval() so it matches the new one-letter variable names that the minifier chose.
  1. Configure !ETags (see YSlow documentation) on your front-end web server. (For Apache, if you're doing load-balancing with multiple file servers, use "FileETag MTime Size" in your config file.)

Log in as guest/pagoda to create tickets