Skip to content

Commit

Permalink
hacky: fix lowrespreload from always regenerating cache
Browse files Browse the repository at this point in the history
we don't have index.cache anymore which is where it's trying to draw a cache version for comparison with the internal version, causing it to always delete the cache and start over

simply preventing all image cache deletion is not a viable long term solution
  • Loading branch information
MinaciousGrace committed Jul 18, 2018
1 parent 5bae25a commit 90939f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SongCacheIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -722,14 +722,17 @@ void SongCacheIndex::ReadCacheIndex()
return; // OK

LOG->Trace( "Cache format is out of date. Deleting all cache files." );
EmptyDir(SpecialFiles::CACHE_DIR + "Banners/");
EmptyDir( SpecialFiles::CACHE_DIR+"Songs/" );
EmptyDir( SpecialFiles::CACHE_DIR+"Courses/" );


// comment out until we stop being really bad at dealing with cache versions (revisit asap) - mina
/*
vector<RString> ImageDir;
split( CommonMetrics::IMAGES_TO_CACHE, ",", ImageDir );
for( std::string Image : ImageDir )
EmptyDir( SpecialFiles::CACHE_DIR+Image+"/" );
*/

CacheIndex.Clear();
/* This is right now in place because our song file paths are apparently being
Expand Down

0 comments on commit 90939f2

Please sign in to comment.