ajanata / PretendYoureXyzzy

A web clone of the card game Cards Against Humanity.
https://pretendyoure.xyz/zy
BSD 2-Clause "Simplified" License
1.23k stars 396 forks source link

Cardcast data #244

Closed ThiefMaster closed 4 years ago

ThiefMaster commented 4 years ago

I don't know if the public xyzzy instances had any caching of cardcast data, but if yes, is there any chance you could publish a public dump of the cached data somewhere? It'd be a shame to lose all the custom sets from cardcast because some jerk sued them...

devgianlu commented 4 years ago

I've also thought of that but the cache is stored with a SoftReference which is deleted by the garbage collector as soon as it doesn't have any more references to it. After the games using it have been removed it is likely to disappear.

Trying to take a memory dump will do no harm tough.

ajanata commented 4 years ago

There's almost certainly nothing left in them after a week. The servers are constantly GCing. This is JVM memory usage for the past day; each time it goes down, the GC has run.

image