tag:help.appveyor.com,2012-11-13:/discussions/problems/11072-cache-not-workingAppVeyor: Discussion 2018-08-25T02:26:07Ztag:help.appveyor.com,2012-11-13:Comment/444809792018-01-10T15:37:37Z2018-01-10T15:37:38Zcache not working<div><p>I'm trying to use ccache with msys2 builds but appveyor seems to not be uploading or downloading the cache, probably something wrong on my config but i can't figure out what.</p>
<p>At the end of a build, i run ccache -s to see the ccache stats and i can see</p>
<pre>
<code>cache directory C:\projects\openframeworks\.ccache
primary config C:\projects\openframeworks\.ccache/ccache.conf
secondary config (readonly) /usr/etc/ccache.conf
cache hit (direct) 0
cache hit (preprocessed) 0
cache miss 141
cache hit rate 0.00 %
called for link 11
cleanups performed 0
files in cache 460
cache size 453.1 MB
max cache size 5.0 GB</code>
</pre>
<p>but in the next build the stats (by running ccache -s before building) i see:</p>
<pre>
<code>cache directory C:\projects\openframeworks\.ccache
primary config C:\projects\openframeworks\.ccache/ccache.conf
secondary config (readonly) /usr/etc/ccache.conf
cache hit (direct) 0
cache hit (preprocessed) 0
cache miss 0
cache hit rate 0.00 %
cleanups performed 0
files in cache 0
cache size 0.0 kB
max cache size 5.0 GB</code>
</pre>
<p>as if nothing had been stored the cache config in .appveyor looks like:</p>
<pre>
<code>cache:
- .ccache</code>
</pre>
<p>and i'm setting the ccache dir to <code>"%APPVEYOR_BUILD_FOLDER%\\.ccache"</code></p>
<p>here's the full config just in case:<br>
<a href="https://github.com/arturoc/openFrameworks/blob/388a7315cfcd9a0bdc7583868b657d6429c4859c/.appveyor.yml">https://github.com/arturoc/openFrameworks/blob/388a7315cfcd9a0bdc75...</a></p>
<p>and here the full output<br>
<a href="https://ci.appveyor.com/project/arturoc/openframeworks/build/1.0.3904/job/jaqll10ewcq0vk59">https://ci.appveyor.com/project/arturoc/openframeworks/build/1.0.39...</a></p>
<p>also this is running on a PR in case it makes any difference</p></div>arturo castrotag:help.appveyor.com,2012-11-13:Comment/444809792018-01-10T17:36:32Z2018-01-10T17:36:32Zcache not working<div><p>Hi Arturo,</p>
<p>I see that most of your builds are PR builds. Please check <code>Save build cache in Pull Requests</code> in UI, in General settings. Also note that we have presence in 2 data centers each with separate local cache server, so it should take 2-3 builds to populate cache in both of them.</p>
<p>Ilya.</p></div>Ilya Finkelshteyn