versioned cache folder

versioned cache folder

Discussion between Spring developers.
Post Reply
cleanrock
Former Engine Dev
Posts: 115
Joined: 21 Feb 2009, 07:42

versioned cache folder

Post by cleanrock »

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.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: versioned cache folder

Post by abma »

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
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: versioned cache folder

Post by hoijui »

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.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: versioned cache folder

Post by abma »

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.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: versioned cache folder

Post by jK »

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.
Post Reply

Return to “Dedicated Developer Discussion”