Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

How to Speed Up Your Joomla Website


Published on

A presentation by SiteGround Performance Guru on how to optimize your Joomla website and make it more than 100 times faster. The topic covers various tips and tricks including:

Joomla backend optimizations
Template and extensions tips
Caching methods and useful plugins
CDN Options
Recommended server settings

Published in: Technology
  • It maybe useful with this detail tutorial to speed up joomla
    Are you sure you want to  Yes  No
    Your message goes here

How to Speed Up Your Joomla Website

  1. 1. HOW TO SPEED UP YOURJOOMLA SITE?Daniel KanchevPerformance Guru
  2. 2. Before We Begin – Who’s That Guy Daniel?ü  7+ years of Joomla! experienceü  4 years with SiteGroundü  Love travelling the worldü  Addicted to extreme sports
  3. 3. ü  Site speed affects your Google Rankings!ü  Keep readers/customers happy & payingü  Be able to handle more visitorsü  Go green and save $$$ from serversWHY BOTHER DOING IT?
  4. 4. Faster Joomla = OptimizationsKEEPCALMIT’S NOTROCKETSCIENCE
  5. 5. ü  Keep your Joomla! updatedü  Choose extensions wiselyü  Deactivate unused extensions, upgrade usedü  Simplify your templates as much as possibleGENERAL GUIDELINES
  6. 6. Simple Front Page Is Betterü  Fancy stuff – only if you really need itü  Remove unnecessary large imagesü  Use fewer internal/external links – add sitemapü  Avoid loading content from remote servers
  8. 8. Enable Compressionü  Natively supported by Joomla! – no extensions neededü  Requires mod_gzip/deflate to be enabled on the serverSiteGlobal ConfigurationServer
  9. 9. Enable Joomla! Cacheü  Enable the “System – Cache” plugin
  10. 10. Recommended Cache SettingsSiteGlobal ConfigurationSystemCache Settings
  11. 11. Some .htaccess Magicü  Get the code:ü  How it works:- Etag – Tells browsers that an image/unit does not need to be reloaded- Expires Headers – Set different expiration dates for various file types- AddOutputFilterByType DEFLATE – minifies the compiled HTML source code
  12. 12. Some .htaccess Magicü The code:FileETag MTime SizeAddOutputFilterByType DEFLATE text/html text/css application/javascriptExpiresActive OnExpiresDefault "now plus 1 hour"ExpiresByType text/css "now plus 1 week“ExpiresByType application/javascript "now plus 1 week"ExpiresByType application/x-javascript "now plus 1 week”
  13. 13. More Optimizations: Images, CSS & JSü  Resize images – never upload 2560x1600 picturesü  Smush your imagesü  Minify and combine CSS and JS filesü  Use image sprites
  14. 14. Sounds Nice, How Do I Begin?ü  Use smush.itü  Photoshop/Fireworksü  Joomla! Extensions
  15. 15. Some Highly Rated Extensionsü JCH Optimize – Combines JS and CSS, Combinesimages in sprites, Minify and Compressü Jbetolo – same as above but + CDN supportü JotCache – improves the Joomla! built in CoreCacheü Cache Cleaner – easily clean the cache from theJoomla! admin panel
  16. 16. JCH Optimizeü  Enable the “System – JCH Optimize” plugin
  17. 17. JCH Optimize Settings
  18. 18. Google mod_pagespeedü  An open-source Apache module - compress, combine andcacheü  Needs to be installed/configured by a System Administratorü  Available on SiteGround servers
  19. 19. Check How’s Your Website Doingü  Google Page Speed Insights -ü  YSlow -ü  GTmetrix -
  20. 20. Some Results – Default Joomla!NoOptimizationsCache/Compression.htaccessrulesJCHPage Load Time 1.61s 1.49s 1.32s 1.02sTotal Page Size 563KB 162KB 162KB 151KBNumber of Requests 35 35 35 19Page Speed Grade F (41%) B (65%) B (87%) A (91%)YSlow Grade C (70%) B (66%) B (86%) A (92%)
  23. 23. CDN Featuresü  CDN will make your website fasterü  CDN will help avoid unneeded I/O on your hard drivesü  CDN will appeal to both Google and your visitors
  24. 24. Software Tweaksü  Use fast and secure PHP like FastCGIü  Move PHP binaries to RAMü  Move TMP to RAMü  Move MySQL to a separate hard drive: RAID & SSDü  Enable MySQL query cacheü  Use TMPFS for MySQL’s tmpdir
  25. 25. Opcode/Object Cachingü  FastCGI + APC PHP extensionü  Memcached and PHP/MySQLü  eAccelerator 
  26. 26. Joomla Interaction with Your Databaseü  First request goes to thedatabase server
  27. 27. Object Cachingü  First request goes to thedatabase serverü  Objects are also storedin Memcached
  28. 28. Object Cachingü  All consecutive requestsare forwarded to theMemcached server
  29. 29. How PHP works¤  Scanning¤  Lexing¤  Parsing¤  Compilation¤  Opcode¤  Execution
  30. 30. ¤  Opcode ¤  ExecutionPHP Opcode Caching
  31. 31. Reverse Proxy Servers
  32. 32. Reverse Proxy Servers
  33. 33. Reverse Proxy Servers
  34. 34. Reverse Proxy Servers
  35. 35. ü  Custom PHP/MySQL configurationü  Memcached/PHP APCü  Joomla! friendly reverse proxy setupOur Own Solution: The SUPERCACHER
  36. 36. Final Results: Joomla + VirtueMartNoOptimizationsApplication LevelOptimizationsServer LevelOptimizationsPage Load Time 5.22s 3.49s 1.09sTotal Page Size 1.89MB 0.67MB 0.67MBNumber of Requests 76 28 28Page Speed Grade F (41%) B (85%) A (92%)YSlow Grade C (70%) B (84%) A (94%)
  37. 37. Some Key Takesü Speed optimization is a process – do it regularlyü Always test!ü Choose a well optimized host
  39. 39. Want a piece of the cake?70% OFF discountWWW.SITEGROUND.COM/WEBINAR
  40. 40. THANK YOU!Daniel