Skip to content

Instantly share code, notes, and snippets.

@rianorie
Created July 15, 2014 14:33
Show Gist options
  • Save rianorie/91ad2f382e5d8ceca3ca to your computer and use it in GitHub Desktop.
Save rianorie/91ad2f382e5d8ceca3ca to your computer and use it in GitHub Desktop.
Magento cache wtf
<?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