Skip to content

Commit 30c06c0

Browse files
committed
Remove .cache from parent dir (#6595)
1 parent 5bb757b commit 30c06c0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

readthedocs/core/utils/general.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +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),
23+
os.path.join(version.project.doc_path, '.cache'),
2424
]
2525
for del_dir in del_dirs:
2626
broadcast(type='build', task=remove_dirs, args=[(del_dir,)])

readthedocs/projects/tasks.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1554,8 +1554,11 @@ def clean_build(version_pk):
15541554
# because we are syncing the servers with an async task.
15551555
del_dirs = [
15561556
os.path.join(version.project.doc_path, dir_, version.slug)
1557-
for dir_ in ('checkouts', 'envs', 'conda', '.cache')
1557+
for dir_ in ('checkouts', 'envs', 'conda')
15581558
]
1559+
del_dirs.append(
1560+
os.path.join(version.project.doc_path, '.cache')
1561+
)
15591562
try:
15601563
with version.project.repo_nonblockinglock(version):
15611564
log.info('Removing: %s', del_dirs)

0 commit comments

Comments
 (0)