File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1055,6 +1055,7 @@ public function getTokens($updateCache = false){
1055
1055
if ($ useFileCache && file_exists ($ tokensFile )){
1056
1056
$ aResult = include_once $ tokensFile ;
1057
1057
}else {
1058
+ $ useFileCache = false ;
1058
1059
$ this ->log ('get-tokens ' , 'Reading tokens from redis ' , TRUE );
1059
106
7289
0
$ aResult = $ this ->oCache ->get ('tokens ' , false , true );
1060
1061
}
@@ -1132,6 +1133,7 @@ public function getTokens($updateCache = false){
1132
1133
$ res = $ this ->saveFile (dirname (__FILE__ ) . self ::TOKENS_FILE_CACHE , $ tokensFileCache );
1133
1134
$ this ->_cliDebug ($ res ? 'Tokens file cache saved. ' : 'Error saving tokens file cache. ' );
1134
1135
}else {
1136
+ $ this ->log ('get-tokens ' , 'Saving tokens to redis ' , TRUE );
1135
1137
$ this ->oCache ->save ('tokens ' , $ aResult );
1136
1138
}
1137
1139
You can’t perform that action at this time.
0 commit comments