Skip to content

fix: autozone cache key #447

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 34 commits into from
Jun 27, 2024
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
649473d
version to 8.6.0
Aug 7, 2023
f26067a
update v8.6.0 CHANGELOG.md
Aug 7, 2023
182ec1b
update test token
Aug 7, 2023
46e9f94
change test case
Aug 7, 2023
74f4677
IPHONEOS_DEPLOYMENT_TARGET to 9.0 & fix some warning
Aug 14, 2023
0d6dd36
Merge branch 'master' of YangSen-qn:qiniu/objc-sdk
Aug 14, 2023
fcbd608
change readme
Aug 14, 2023
3365af1
change test profile
Aug 16, 2023
8ffc20b
add createWithRegionId
Sep 7, 2023
712ccce
FixZone deprecated some builder api
Sep 12, 2023
488e0f1
Merge branch 'master' of YangSen-qn:qiniu/objc-sdk into fixzone-creator
Oct 20, 2023
6aa3861
version to v8.7.0
Oct 20, 2023
d5bff81
Merge branch 'master' of YangSen-qn:qiniu/objc-sdk
Oct 20, 2023
a6e6539
Merge branch 'fixzone-creator'
Oct 20, 2023
9e74e8f
Merge branch 'master' of YangSen-qn:qiniu/objc-sdk
Oct 23, 2023
8dac547
handle cache timestamp
Nov 6, 2023
c047858
uc query add host: uc.qiniuapi.com
Nov 13, 2023
e7dcaed
change ci cocopods version to 1.14.2
Nov 13, 2023
9c54854
change http scheme logic: prefer using url self scheme
Nov 16, 2023
e77a14a
version to 8.7.1
Nov 23, 2023
c70d92d
add PrivacyInfo
Mar 22, 2024
6169864
Merge branch 'master' of YangSen-qn:qiniu/objc-sdk
Mar 22, 2024
79940c8
version to v8.7.2
Apr 11, 2024
cf00aaa
change test token
Apr 11, 2024
3f49fde
fix: test case
Apr 11, 2024
917bfaa
upload support acc
May 27, 2024
6ca6640
Merge branch 'master' of YangSen-qn:qiniu/objc-sdk
May 27, 2024
0071fdd
version check
May 27, 2024
da1929d
uc host remove api*
May 27, 2024
fd209d7
support acc upload
May 28, 2024
f13ea32
version to v8.8.0
Jun 24, 2024
21529c6
Merge branch 'master' of YangSen-qn:qiniu/objc-sdk
Jun 24, 2024
9494147
fix: auto zone cache key
Jun 27, 2024
3beaf4e
Merge branch 'master' of YangSen-qn:qiniu/objc-sdk
Jun 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions QiniuSDK/Common/QNAutoZone.m
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ - (void)setDefaultZones:(NSArray <QNFixedZone *> *)zones {
- (QNZonesInfo *)getZonesInfoWithToken:(QNUpToken *_Nullable)token {

if (token == nil) return nil;
NSString *cacheKey = [self makeCacheKey:nil akAndBucket:token.index];
NSString *cacheKey = [self makeCacheKey:[QNConfiguration defaultConfiguration] akAndBucket:token.index];
QNZonesInfo *zonesInfo = nil;
@synchronized (self) {
zonesInfo = self.zonesDic[cacheKey];
Expand Down Expand Up @@ -247,7 +247,7 @@ - (NSString *)makeCacheKey:(QNConfiguration *)config akAndBucket:(NSString *)akA
}
hosts = [NSString stringWithFormat:@"%@:%@", hosts, host];
}
NSString *cacheKey = [NSString stringWithFormat:@"%@:%@", hosts, akAndBucket];
NSString *cacheKey = [NSString stringWithFormat:@"%@:%@", hosts, key];
return [QNUrlSafeBase64 encodeString:cacheKey];
}

Expand Down
Loading