Niels Pahlmann, TUDOCK GmbH
Die quantitative Zusammensetzung der Ladezeit-Bestandteile ist in jeder Anwendung individuell.
S
V
Ü
D
Was soll schneller werden?
Um wie viel soll es schneller werden?
Enable Expire Headers
<IfModule mod_expires.c>
ExpiresActive On
</IfModule>
APC Cache Backend
<global>
<cache>
<backend>apc</backend>
<prefix>MAGE_</prefix>
</cache>
</global>
MySQL query caching
query_cache_type=1
query_cache_size=64M
SSL-Handshake
Ü
S
S
V
Alle Caches sind
AKTIVIERT
Alle Indizierungen sind
FERTIG/AKTUELL
S
S
PHP Code Sniffer
//Performance Issue!!!
foreach ($this->getProductIds() as $productId) {
$product = Mage::getModel(‘catalog/product’)->load($productId);
$this->processProduct($product);
}
//So geht's!
$collection = Mage::getResourceModel(‘catalog/product_collection’)
->addFieldToFilter(‘entity_id’, array($this->getProductIds()))
->addAttributeToSelect(array(‘name’));
foreach ($collection as $product) {
$this->processProduct($product);
}
S
D
Ü
Ü
D
S
class Tudock_Cora_Block_Catalog_Product_List extends Mage_Catalog_Block_Product_List {
protected function _construct() {
/** @var $helper Tudock_Cora_Helper_Cache */
$helper = Mage::helper('cora/cache');
if ($helper->canCache()) {
$this->addData(array(
'cache_lifetime' => 86400,
'cache_tags' => array(Mage_Catalog_Model_Product::CACHE_TAG),
'cache_key' => $helper->getCategoryCacheKey('Product_List'),
));
}
parent::_construct();
}
S
S
S
S
Ü
S
Ü
Ü
S
S
S
<esi:include src=„user.php“ onerror="continue"/>
S
S
S
S
<picture>
<source media="(min-width: 64em)" src="high-res.jpg">
<source media="(min-width: 37.5em)" src="med-res.jpg">
<source src="low-res.jpg">
<img src="fallback.jpg" alt="This picture loads on non-supporting browsers.">
<p>Accessible text.</p>
</picture>
Besondere Herausforderung Responsive Web Design
Ü