Created
July 15, 2014 14:33
-
-
Save rianorie/91ad2f382e5d8ceca3ca to your computer and use it in GitHub Desktop.
Magento cache wtf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include(__DIR__.'/../app/Mage.php'); | |
Mage::app(); | |
$s = microtime(true); | |
var_dump( Mage::getStoreConfig('test/test/test') ); | |
$r = rand(1000, 9999); | |
Mage::getConfig()->saveConfig('test/test/test', $r); | |
mage::app()->getStore()->setConfig('test/test/test', $r); | |
var_dump( Mage::getStoreConfig('test/test/test') ); | |
echo microtime(true)-$s."\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment