![Page 1: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/1.jpg)
![Page 2: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/2.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Worked on Magento since 1.2
Technical Director @ Space 48
Love learning and collaborating
![Page 3: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/3.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Overview• Monitoring
![Page 4: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/4.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Overview• Monitoring
• General FPC efficiency
![Page 5: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/5.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Overview• Monitoring
• General FPC efficiency
• Improvement examples (M1)
![Page 6: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/6.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Overview• Monitoring
• General FPC efficiency
• Improvement examples (M1)
• M2 FPC
![Page 7: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/7.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 8: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/8.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 9: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/9.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 10: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/10.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 11: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/11.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 12: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/12.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 13: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/13.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 14: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/14.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Where to start?
![Page 15: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/15.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 16: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/16.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Max Chadwick@maxpchadwick
http://maxchadwick.xyz
Something Digital
Nomad Mage: https://goo.gl/3KnTO0
Mpchadwick_PageCacheHitRate : https://goo.gl/oWJZ0w
![Page 17: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/17.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 18: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/18.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 19: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/19.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Do I have a cached version of the page?
Load Magento and get content for the
page and the containers, then
return
Do I have cached versions of all
containers on the page?
Load Magento and get content for
containers, merge in to cached page content and return
Return page and containers from cache
FULL HIT PARTIAL HIT MISS
YES
NO
YES
Response
Response
Response
NO
Request
![Page 20: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/20.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 21: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/21.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 22: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/22.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Module 1: Opening Times
Call us today 8am - 10pm
![Page 23: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/23.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Module 1: Opening Times
• Stores opening and closing times for days of the week
• A custom message is defined for each state
• Custom dates can be added for holidays etc.
![Page 24: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/24.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Module 1: Opening Times
Call us today 8am - 10pm
![Page 25: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/25.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Module 1: Opening TimesContainer Class
![Page 26: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/26.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Module 1: Opening Times
Why would you do that?
Container Class
![Page 27: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/27.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Module 1: Opening Times
How often should this change?
Call us today 8am - 10pm
![Page 28: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/28.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Module 1: Opening Times
So we need to cache it right?
Call us today 8am - 10pm
![Page 29: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/29.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 30: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/30.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Container Class
![Page 31: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/31.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Module 2: MyFavourites
![Page 32: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/32.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Module 2: MyFavouritesContainer Class
![Page 33: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/33.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Module 2: MyFavourites
Why would you do that?
Container Class
![Page 34: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/34.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Module 2: MyFavourites
Am I a favourite?
![Page 35: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/35.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Module 2: MyFavourites
Am I a favourite?
Am I a favourite?
![Page 36: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/36.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Module 2: MyFavourites
Am I a favourite?
Am I a favourite?
Am I a favourite?
![Page 37: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/37.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Module 2: MyFavourites
Am I a favourite?
Am I a favourite?
Am I a favourite?
Am I a favourite?
![Page 38: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/38.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 39: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/39.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Module 2: MyFavourites
![Page 40: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/40.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Module 2: MyFavourites
![Page 41: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/41.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Result: Greatly reduced partial hits!
![Page 42: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/42.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
This will blow your mind…
![Page 43: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/43.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Crontab from hell
![Page 44: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/44.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Crontab from hell
Why would you do that?
![Page 45: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/45.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
To be fair…
• Easy for me to question “Why?”
![Page 46: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/46.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
To be fair…
• Easy for me to question “Why?”
• Everyone is learning!
![Page 47: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/47.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
To be fair…
• Easy for me to question “Why?”
• Everyone is learning!
• We need to embrace such experiences
![Page 48: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/48.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
To be fair…
• Easy for me to question “Why?”
• Everyone is learning!
• We need to embrace such experiences
• Ideally we should SHARE such experiences!!
![Page 49: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/49.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
M2 FPC
![Page 50: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/50.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Varnish FTW
![Page 51: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/51.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Still has to deal with independently flushable content and private data
![Page 52: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/52.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Shared public content… ESI
![Page 53: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/53.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Private… AJAX and local storage
![Page 54: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/54.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
You can screw it up if you want?
![Page 55: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/55.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 56: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/56.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
If you use cacheable=“false" for a block, be aware the whole page will
be excluded from FPC
![Page 57: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/57.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 58: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/58.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
![Page 59: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/59.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
M2 FPC Monitoring?
![Page 60: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/60.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Conclusion
![Page 61: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/61.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
With great power…
…comes great responsibility
![Page 62: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/62.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Monitor as much as is practical
![Page 63: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/63.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Embrace mistakes
![Page 64: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/64.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
Embrace mistakes..and share them
![Page 65: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/65.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
THANKS!!
![Page 66: An Optimisation Story at Mage Titans Manchester 2016](https://reader033.vdocument.in/reader033/viewer/2022042907/5871ae851a28abda6a8b6217/html5/thumbnails/66.jpg)
@Tonegolf71 @Space48ers
#MageTitansMCR
THANKS!!
Any questions?