Skip to content

Instantly share code, notes, and snippets.

View mzeis's full-sized avatar
🤓

Matthias Zeis mzeis

🤓
View GitHub Profile
--- a/app/code/core/Mage/Core/Model/App.php
+++ b/app/code/core/Mage/Core/Model/App.php
@@ -511,11 +511,7 @@ class Mage_Core_Model_App
if ($this->_currentStore == $store) {
$store = $this->getStore($store);
- if ($store->getWebsite()->getDefaultStore()->getId() == $store->getId()) {
- $this->getCookie()->delete(Mage_Core_Model_Store::COOKIE_NAME);
- } else {
- $this->getCookie()->set(Mage_Core_Model_Store::COOKIE_NAME, $this->_currentStore, true);
<?php
$input = new StringInput('cache:flush');
// ensure that n98-magerun doesn't stop after first command
$this->getApplication()->setAutoExit(false);
// without output
$this->getApplication()->run($input, new NullOutput());