diff --git a/readthedocs/projects/models.py b/readthedocs/projects/models.py index 9dc5a682367..ac8df36d6ce 100644 --- a/readthedocs/projects/models.py +++ b/readthedocs/projects/models.py @@ -441,6 +441,8 @@ def checkout_path(self, version=LATEST): @property def pip_cache_path(self): """Path to pip cache""" + if getattr(settings, 'GLOBAL_PIP_CACHE', False): + return settings.GLOBAL_PIP_CACHE return os.path.join(self.doc_path, '.cache', 'pip') #