# Cache not working

When executing a build I am not able to keep a file using the `cache` directive (the file is `local.cfg`)
(working on a local customization of the Dspace project)

The specific file is NOT under version control (i.e. it has an entry in `.gitignore`)

I have used the following 2 approaches:

``````cache:
untracked: true
``````
``````cache:
paths:
- local.cfg
``````

neither worked since at the beginning of each build I see the following output

``````Fetching changes...
Removing dspace-api/target/
Removing dspace-jspui/target/
Removing dspace-rest/target/
Removing dspace-services/target/
Removing dspace-solr/target/