2. Meet Magento Poland 2014
Who am I
Fabrizio Balliano
PHP since 1999
Magento since 2007
MCD MCD+ MCFD MCSS
magento.com/it admin
Full time Magento since 2011
CTO of Sevenlike Srl
@fballiano
3. What is Varnish
Web application accelerator
HTTP reverse proxy
Cache server
Maybe full RAM solution
Tremendous speed gain
Saves CPUs
Saves network traffic
Meet Magento Poland 2014
4. What is Varnish for Magento
Full Page Cache
Pre rendered HTML pages
Static assets
JS/CSS
Images
Meet Magento Poland 2014
15. Dynamic blocks
Meet Magento Poland 2014
ESI: Edge Side Includes
Not visible to client
Before page load
Can be cached
– whole site/one page
– each user/all
NO COOKIES!
Little data transported
AJAX
Visible to client
After page load
Can NOT be cached
COOKIES!
A lot of data
21. Flash messages:
let's extend them
class Fballiano_TurpentineRecentlyViewed_Block_Messages extends
Nexcessnet_Turpentine_Block_Core_Messages
{
public function _prepareLayout()
{
Meet Magento Poland 2014
// code to do whatever we want
return parent::_prepareLayout();
}
}