I am not sure this is a problem:
If you start a develop build now default cache dir will be ~/.config/spring/cache/94/.
Its not a problem now but may be when 95 is released.
Perhaps we should make cache dir name more fine grained so we dont regenerate cache files when switching between last release and develop.
versioned cache folder
Re: versioned cache folder
i had that on my "brain todo", too:
if its a branch != master, the branch should be added to the folder name
thanks!
edit: mantis'ed so it can't get lost: http://springrts.com/mantis/view.php?id=3692
if its a branch != master, the branch should be added to the folder name
thanks!
edit: mantis'ed so it can't get lost: http://springrts.com/mantis/view.php?id=3692
Re: versioned cache folder
i though there is a spring-internal var for the cache type version already. it would make more sense to use that one, instead of the spring version, or at least the mayor version + this cache version only.
Re: versioned cache folder
yep, there is. but in 94.0 it was missed to update the cache version var which caused desyncs. this is why it now automaticly changes with each major release so this can never happen again.
note: with cache files the path cache & archivecache.lua is meant.
note: with cache files the path cache & archivecache.lua is meant.
Re: versioned cache folder
No, spring cache version wasn't and isn't enough.
(reminds me to remove it)
You need an own ArchiveCache.lua for each engine version, cause not only checksum algorithm matters (which is now stable for ages), but also the used basecontent.
(reminds me to remove it)
You need an own ArchiveCache.lua for each engine version, cause not only checksum algorithm matters (which is now stable for ages), but also the used basecontent.