Skip to content

Commit 48ec2c0

Browse files
authored
Merge pull request #6571 from stsewd/delete-cache-dir-on-wipe
Delete .cache dir on wipe
2 parents 9860cbc + 5a346ce commit 48ec2c0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

readthedocs/core/utils/general.py

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def wipe_version_via_slugs(version_slug, project_slug):
2020
os.path.join(version.project.doc_path, 'checkouts', version.slug),
2121
os.path.join(version.project.doc_path, 'envs', version.slug),
2222
os.path.join(version.project.doc_path, 'conda', version.slug),
23+
os.path.join(version.project.doc_path, '.cache', version.slug),
2324
]
2425
for del_dir in del_dirs:
2526
broadcast(type='build', task=remove_dirs, args=[(del_dir,)])

readthedocs/projects/tasks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ def clean_build(version_pk):
15491549
# because we are syncing the servers with an async task.
15501550
del_dirs = [
15511551
os.path.join(version.project.doc_path, dir_, version.slug)
1552-
for dir_ in ('checkouts', 'envs', 'conda')
1552+
for dir_ in ('checkouts', 'envs', 'conda', '.cache')
15531553
]
15541554
try:
15551555
with version.project.repo_nonblockinglock(version):

0 commit comments

Comments
 (0)