Delete cache

ulrich.b's Avatar

ulrich.b

22 May, 2015 11:37 PM

How can I delete (reset) the cache of a project on demand?

  1. Support Staff 1 Posted by Feodor Fitsner on 22 May, 2015 11:42 PM

    Feodor Fitsner's Avatar

    Use cache dependencies: http://www.appveyor.com/docs/build-cache#cache-dependencies

    You can have any file as dependency that will be triggering cache invalidation, even "cleanup-cache.txt" say in the root of your repo:

    cache:
    - my_cached_folder -> cleanup-cache.txt
    

    Whenever CRC32 of cleanup-cache.txt is changed the cache is invalidated, i.e. not restored in the beginning of the build.

  2. 2 Posted by ulrich.b on 22 May, 2015 11:44 PM

    ulrich.b's Avatar

    Hi.

    Thanks for your answer. With "on demand" I meant "manually".

  3. Support Staff 3 Posted by Feodor Fitsner on 22 May, 2015 11:47 PM

    Feodor Fitsner's Avatar

    There is no such command or API yet, but manually updating cleanup-cache.txt is basically the same.

  4. 4 Posted by micah on 06 Aug, 2015 04:44 AM

    micah's Avatar

    +1 to allowing manual purge. A hiccup has resulted in some bad stuff getting cached and I'm not a fan of committing a change to one of my configuration files just so I can get the cache to clear.

  5. 5 Posted by sam.halliday on 19 Apr, 2016 08:00 PM

    sam.halliday's Avatar

    +1 this would be a useful feature, my caches are getting big and I don't want to mutate the repo to do this as that will result in various other build systems triggering a new deploy.

  6. 6 Posted by Aida Enna on 11 Aug, 2016 06:26 PM

    Aida Enna's Avatar

    Can I get a +1? This would be an extremely useful feature.

  7. 7 Posted by giuliovdev on 09 Sep, 2016 07:34 PM

    giuliovdev's Avatar

    +1

  8. Support Staff 8 Posted by Feodor Fitsner on 09 Sep, 2016 08:08 PM

    Feodor Fitsner's Avatar

    As a workaround you can cleanup cache using REST API: https://github.com/appveyor/ci/issues/985

  9. 9 Posted by Sébastien Gallo... on 17 Oct, 2017 07:49 AM

    Sébastien Gallou's Avatar

    +1 ! Would be usefull to clear cache manually (for example via a button in the project settings)

  10. 10 Posted by Marcel Kruczkow... on 26 Oct, 2017 07:43 AM

    Marcel Kruczkowski's Avatar

    +1

  11. 11 Posted by Michelle Kieras... on 26 Oct, 2017 07:45 AM

    Michelle Kierasso's Avatar

    +1

  12. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:20 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac