Skip to content

Commit 9fd913b

Browse files
authored
fix: Add platform name to mobile config cache key (openedx#32504)
1 parent 8990035 commit 9fd913b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lms/djangoapps/mobile_api/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def _get_version_info(self, request):
9999
request_cache_dict[self.USER_APP_VERSION] = platform.version
100100
last_supported_date_cache_key = self._get_cache_key_name(
101101
self.LAST_SUPPORTED_DATE_HEADER,
102-
platform.version
102+
platform.NAME + platform.version
103103
)
104104
latest_version_cache_key = self._get_cache_key_name(self.LATEST_VERSION_HEADER, platform.NAME)
105105
cached_data = cache.get_many([last_supported_date_cache_key, latest_version_cache_key])

0 commit comments

Comments
 (0)