mtgjson3 icon indicating copy to clipboard operation
mtgjson3 copied to clipboard

Cache Issues

Open tstrimple opened this issue 12 years ago • 1 comments

This is a great service. I was actually in the middle of scraping the data myself when I came across this. There is a fairly large problem with the caching implementation though, and that is that it never updates the cache. There should be some rule for how long a cache file stays valid, otherwise you'll never pick up on ruling updates. I believe this is what is causing your Theros file to be missing a LOT of rulings. Some are as far back as 9-15-2013 like the Whip of Erebos. I would be happy to help out with this, but I really don't want to dig into the java side of the project!

tstrimple avatar Jan 24 '14 16:01 tstrimple

On Feb 12 I updated mtgjson to have fully up to date oracle text and rulings. So Theros and other cards should no longer be out of date in regards to ruligns and oracle text.

I also added some code to clear the cache for rulings/oracletext/etc on demand.

It looks like Oracle text and rulings are only updated a few times a year, so I set myself a calendar reminder to update all the cards with the latest rulings and oracle text every couple months.

That should ensure mtgjson has reasonably up to date rulings and oracle text.

Sembiance avatar Feb 15 '14 22:02 Sembiance