File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1123,14 +1123,15 @@ public function getTokens($updateCache = false){
1123
1123
if (isset ($ aResult [self ::ADDRESS_ETH ])){
1124
1124
unset($ aResult [self ::ADDRESS_ETH ]);
1125
1125
}
1126
- $ this ->oCache ->save ('tokens ' , $ aResult );
1127
1126
1128
1127
if ($ useFileCache ){
1129
1128
$ tokensFileCache = '<?php ' . "\n" . 'return ' ;
1130
1129
$ tokensFileCache .= $ this ->varExportMin ($ aResult );
1131
1130
$ tokensFileCache .= '; ' . "\n" ;
1132
1131
$ res = $ this ->saveFile (dirname (__FILE__ ) . self ::TOKENS_FILE_CACHE , $ tokensFileCache );
1133
1132
$ this ->_cliDebug ($ res ? 'Tokens file cache saved. ' : 'Error saving tokens file cache. ' );
1133
+ }else {
1134
+ $ this ->oCache ->save ('tokens ' , $ aResult );
1134
1135
}
1135
1136
1136
1137
evxProfiler::checkpoint ('getTokens ' , 'FINISH ' );
@@ -1139,7 +1140,6 @@ public function getTokens($updateCache = false){
1139
1140
return $ aResult ;
1140
1141
}
1141
1142
1142
-
1143
1143
public function getTokenHoldersCount ($ address , $ useFilter = TRUE ){
1144
1144
evxProfiler::checkpoint ('getTokenHoldersCount ' , 'START ' , 'address= ' . $ address );
1145
1145
$ cache = 'getTokenHoldersCount- ' . $ address ;
You can’t perform that action at this time.
0 commit comments