Open sorawee opened 7 years ago
Can't students use "my-gdrive" for this use case? It should do the right file-based caching for this.
Yup, they can, and this would solve their problem indeed :)
But I think this is still a valid issue that would be nice to be fixed.
Say, I have two Pyret code open:
a.arr
andb.arr
wherea.arr
importsb.arr
. I runa.arr
and find thatb.arr
is wrong, so I edit and republishb.arr
. When I runa.arr
again, it still runs the oldb.arr
. I need to refresh the page (start Pyret again) ofa.arr
to update to the latest version ofb.arr
.This will really affect students who have implementations and tests on two tabs.
I understand the need of caching, but can it be less aggressive. I.e., look at the timestamp of shared code. If it's newer than what gets run before, then clear the cache and reload the file.