From 0553d3c815cdb3f45140ff26d4bc8df5e609f496 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Wed, 2 Oct 2019 10:34:21 +0200 Subject: [PATCH] Remove .cache directory when CLEAN_AFTER_BUILD feature is enabled --- readthedocs/projects/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readthedocs/projects/tasks.py b/readthedocs/projects/tasks.py index c406c15d968..d2cc2dbdc89 100644 --- a/readthedocs/projects/tasks.py +++ b/readthedocs/projects/tasks.py @@ -1517,7 +1517,7 @@ def clean_build(version_pk): # because we are syncing the servers with an async task. del_dirs = [ os.path.join(version.project.doc_path, dir_, version.slug) - for dir_ in ('checkouts', 'envs', 'conda') + for dir_ in ('checkouts', 'envs', 'conda', '.cache') ] try: with version.project.repo_nonblockinglock(version):