Question:
How can I optimize EE?
Answer:
EE specific things to do:
* See the Data and Caching Performance section of the EE manual.
* Use Simple Conditionals instead of Complex Conditionals where possible, especially when the contents of that conditional require additional processing.
* You can try to Reduce Queries.
* Use Template Caching (2-10 minute caching on the heaviest hit pages and 10-60 minute caches for “static” things such as header/footer usually works well), goto Templates > Template Preferences Manager and Enable Caching.
* Be sure to turn on Template Caching for embedded Templates, as well.
* Use the disable= parameter in your {exp:weblog:entries} tags.
* You can go to Admin > Utilities > SQL Manager then choose Manage Database Tables. Scroll to the bottom, Select All and Repair selected tables. Rinse and repeat, this time with Optimise all tables.
* You might also want to check out this section on handling extreme traffic. It allows you to reduce or in some cases disable write access to the database, improving performance.
Further Info
When you do something such as turn off referrers, you turn off the queries and the processing done when that referrer logging is done. If you are caching database queries there is a certain amount of work required by EE to read, check, and store those cache files, so if you reduce the overall number of queries you stop EE from needing to cache those queries as well.
General server optimization:
If you install Zend Optimizer and turn off the option to run encoded php, you should see a nice lowering of CPU usage.
Some Helpful Web Links
Best Practices for Speeding Up Your Web Site
http://developer.yahoo.com/performance/rules.html
The Exceptional Performance team [at Yahoo] has identified a number of best practices for making web pages fast. The list includes 35 best practices divided into 7 categories.
Troubleshooting Site Performance Issues
(specific to the Expression Engine CMS)
http://expressionengine.com/blog/entry/troubleshooting_site_performance_issues/
From the article: “The following is an outline of how I like to approach troubleshooting, along with some tips and tricks to consider as you are developing and deploying your ExpressionEngine-based websites.”
Specific advice from hosting company Media Temple
http://wiki.mediatemple.net/w/(gs):My_website_is_slow
Article Contents
* 1 Symptoms
* 2 Diagnosis
* 2.1 Network problems: is it everyone, or just my local area?
* 2.2 Page-specific problems
* 2.3 Database problems
* 2.4 (mt) Media Temple machine and software problems
Analyzing slow page elements from hosting company Media Temple
http://wiki.mediatemple.net/w/(gs):Analyze_website_for_slow_page_elements
Article Contents
* 1 Symptoms
* 2 Diagnosis
* 2.1 How to use Pingdom and Firebug
* 2.1.1 Pingdom
* 2.1.2 Firebug and YSlow
* 2.2 Common culprits
* 3 Additional resources
* 4 What if this doesn’t solve my problem?
Web site Tools from Pingdom
How it works
The Full Page Test loads a complete HTML page including all objects (images, CSS, JavaScripts, RSS, Flash and frames/iframes). It mimics the way a page is loaded in a web browser.
The load time of all objects is shown visually with time bars.
You can view the list of objects either in load order or as a hierarchy. The hierarchy view allows you to see which objects are linked to in for example a CSS file.
Every test also shows general statistics about the loaded page such as the total number of objects, total load time, and size including all objects.
Note: This version doesn’t load objects included in JavaScripts. We have also put a limit on the number and size of the objects that are loaded (to prevent the tool from downloading movies, for example).
This Full Page Test was inspired by the OctaGate SiteTimer. We liked what they did and wanted to take the idea one step further.
The Yahoo performance optimization tool Yslow
http://developer.yahoo.com/yslow/
YSlow analyzes web pages and suggests ways to improve their performance based on a set of rules for high performance web pages.
Feature highlights:
* Grades web page based on one of three predefined ruleset or a user-defined ruleset
* It offers suggestions for improving the page’s performance
* Summarizes the page’s components
* Displays statistics about the page
* Provides tools for performance analysis, including Smush.itâ„¢ and JSLint.
Category:Database Category:Tips Category:Optimization
