Skip to content

Commit

Permalink
fix: Add platform name to mobile config cache key (openedx#32504)
Browse files Browse the repository at this point in the history
  • Loading branch information
moeez96 committed Jun 19, 2023
1 parent 8990035 commit 9fd913b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/djangoapps/mobile_api/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def _get_version_info(self, request):
request_cache_dict[self.USER_APP_VERSION] = platform.version
last_supported_date_cache_key = self._get_cache_key_name(
self.LAST_SUPPORTED_DATE_HEADER,
platform.version
platform.NAME + platform.version
)
latest_version_cache_key = self._get_cache_key_name(self.LATEST_VERSION_HEADER, platform.NAME)
cached_data = cache.get_many([last_supported_date_cache_key, latest_version_cache_key])
Expand Down

0 comments on commit 9fd913b

Please sign in to comment.