diff --git a/containers/jug/xl.Dockerfile b/containers/jug/xl.Dockerfile
index bb217dc599f14a2fa58137f7b00213702221a5e5..c51bc0337b4eb1b14515eda5e24670733eb60c10 100644
--- a/containers/jug/xl.Dockerfile
+++ b/containers/jug/xl.Dockerfile
@@ -124,7 +124,7 @@ COPY setup_detectors.py /tmp
 COPY detectors.yaml /tmp
 ENV CCACHE_DIR=/ccache/$TARGETPLATFORM
 RUN --mount=type=cache,target=/ccache/                                          \
-    cd /tmp                                                                     \
+    cd /tmp && ccache -c                                                                     \
  && [ "z$NIGHTLY" = "z1" ] && NIGHTLY_FLAG="--nightly" || NIGHTLY_FLAG=""       \
  && /tmp/setup_detectors.py --prefix /opt/detector --config /tmp/detectors.yaml \
                          $NIGHTLY_FLAG                                          \