Testing three type of caches: persistent, non-persistent and two-level.
- MacBook Air
- 13-inch, Mid 2012
- Processor 1.8 GHz Intel Core i5
- Memory 8 GB 1600 MHz DDR3
#!/bin/bash | |
#CONFIG | |
backupDir='/mnt/backup' | |
magentoDir='/var/www/magento/htdocs' | |
magerunPath='/usr/bin/n98-magerun.phar' | |
#NUMBER OF DAYS TO KEEP BACKUPS | |
dailyKeepDays=7 | |
weeklyKeepDays=30 |
; configuration for php ZendOpcache module | |
; Tuned for Magento 1.13.1 on PHP 5.5 | |
; Test server has 8 CPU cores and 32 GB RAM | |
zend_extension=opcache.so | |
[opcache] | |
opcache.memory_consumption=256 | |
opcache.interned_strings_buffer=12 | |
opcache.max_accelerated_files=16000 | |
opcache.enable_file_override=1 |
<?php | |
class Vianetz_StateStatusIntegrity_Model_Orderstatus extends Mage_Core_Model_Abstract | |
{ | |
/** | |
* Event: sales_order_save_before | |
* | |
* @param Varien_Event_Observer $observer | |
* | |
* @return Vianetz_StateStatusIntegrity_Model_Orderstatus |
public function indexAction() { | |
/** @var \TYPO3\CMS\Core\Resource\ResourceFactory $resourceFactory */ | |
$resourceFactory = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\ResourceFactory'); | |
$fileReference = $resourceFactory->getFileReferenceObject($this->settings['test']); | |
$fileArray = $fileReference->getProperties(); | |
$this->view->assign('image', $fileArray); | |
} |
# Create a new Token | |
curl -u 'githubuser' -d '{"note":"Your Application"}' https://api.github.com/authorizations | |
# It is: "ebab4dc37e654bb230a9c69ebcd5f38e9a81e210" | |
#{ | |
# "created_at": "2013-01-04T18:00:28Z", | |
# "app": { | |
# "url": "http://developer.github.com/v3/oauth/#oauth-authorizations-api", |
<config> | |
<frontend> | |
<controller_action_predispatch> | |
<observers> | |
<log> | |
<type>disabled</type> | |
</log> | |
</observers> | |
</controller_action_predispatch> | |
<controller_action_postdispatch> |
diff -rupN mage_org/app/code/core/Mage/Catalog/Model/Url.php src_shop/app/code/core/Mage/Catalog/Model/Url.php | |
--- mage_org/app/code/core/Mage/Catalog/Model/Url.php 2013-11-19 00:48:25.679009391 +0100 | |
+++ src_shop/app/code/core/Mage/Catalog/Model/Url.php 2013-11-19 00:49:24.188005601 +0100 | |
@@ -643,13 +643,24 @@ class Mage_Catalog_Model_Url | |
$this->_rewrite = $rewrite; | |
return $requestPath; | |
} | |
+ | |
+ // avoid unnecessary creation of new url_keys for duplicate url keys | |
+ $noSuffixPath = substr($requestPath, 0, -(strlen($suffix))); |