Merge pull request #1608 from MPOS/admin-wallet-smarty-cache

[FIX] Do not assign smarty vars if caching hits
This commit is contained in:
Sebastian Grewe 2014-01-27 04:51:40 -08:00
commit 7d4e0ccb6d

View File

@ -37,10 +37,6 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
// Cold wallet balance // Cold wallet balance
if (! $dColdCoins = $setting->getValue('wallet_cold_coins')) $dColdCoins = 0; if (! $dColdCoins = $setting->getValue('wallet_cold_coins')) $dColdCoins = 0;
} else {
$debug->append('Using cached page', 3);
}
$smarty->assign("UNCONFIRMED", $dBlocksUnconfirmedBalance); $smarty->assign("UNCONFIRMED", $dBlocksUnconfirmedBalance);
$smarty->assign("BALANCE", $dBalance); $smarty->assign("BALANCE", $dBalance);
$smarty->assign("COLDCOINS", $dColdCoins); $smarty->assign("COLDCOINS", $dColdCoins);
@ -49,6 +45,9 @@ $smarty->assign("NEWMINT", $dNewmint);
$smarty->assign("COININFO", $aGetInfo); $smarty->assign("COININFO", $aGetInfo);
// Tempalte specifics // Tempalte specifics
$smarty->assign("CONTENT", "default.tpl"); } else {
$debug->append('Using cached page', 3);
}
$smarty->assign("CONTENT", "default.tpl");
?> ?>