Merge pull request #1608 from MPOS/admin-wallet-smarty-cache
[FIX] Do not assign smarty vars if caching hits
This commit is contained in:
commit
7d4e0ccb6d
@ -37,18 +37,17 @@ 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;
|
||||||
|
$smarty->assign("UNCONFIRMED", $dBlocksUnconfirmedBalance);
|
||||||
|
$smarty->assign("BALANCE", $dBalance);
|
||||||
|
$smarty->assign("COLDCOINS", $dColdCoins);
|
||||||
|
$smarty->assign("LOCKED", $dLockedBalance);
|
||||||
|
$smarty->assign("NEWMINT", $dNewmint);
|
||||||
|
$smarty->assign("COININFO", $aGetInfo);
|
||||||
|
|
||||||
|
// Tempalte specifics
|
||||||
} else {
|
} else {
|
||||||
$debug->append('Using cached page', 3);
|
$debug->append('Using cached page', 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
$smarty->assign("UNCONFIRMED", $dBlocksUnconfirmedBalance);
|
|
||||||
$smarty->assign("BALANCE", $dBalance);
|
|
||||||
$smarty->assign("COLDCOINS", $dColdCoins);
|
|
||||||
$smarty->assign("LOCKED", $dLockedBalance);
|
|
||||||
$smarty->assign("NEWMINT", $dNewmint);
|
|
||||||
$smarty->assign("COININFO", $aGetInfo);
|
|
||||||
|
|
||||||
// Tempalte specifics
|
|
||||||
$smarty->assign("CONTENT", "default.tpl");
|
$smarty->assign("CONTENT", "default.tpl");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user