diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 75ee9b82ed048903e9d9e11a8c8e4aac6b86722d..8b9bd517e1bf300c81db90f8c44d6b746ab10967 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,7 +8,8 @@ stages:
   - test
 
 cache:
-  key: "$CI_BUILD_NAME"
+  key: "$CI_BUILD_REF_NAME"
+  untracked: true
   paths:
     - build-ci/
 
@@ -80,6 +81,7 @@ test:centos6.6:
   - pwd
   - ls .
   - ls ..
+  - ls -la /cache
   - cd build-ci/
   - make check
   - echo "... done testing on CentOS 6."