code.pyret.org icon indicating copy to clipboard operation
code.pyret.org copied to clipboard

shared-grive caching issue

Open sorawee opened this issue 8 years ago • 5 comments

Say, I have two Pyret code open: a.arr and b.arr where a.arr imports b.arr. I run a.arr and find that b.arr is wrong, so I edit and republish b.arr. When I run a.arr again, it still runs the old b.arr. I need to refresh the page (start Pyret again) of a.arr to update to the latest version of b.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.

sorawee avatar Sep 01 '17 03:09 sorawee

Can't students use "my-gdrive" for this use case? It should do the right file-based caching for this.

jpolitz avatar Sep 01 '17 03:09 jpolitz

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.

sorawee avatar Sep 01 '17 04:09 sorawee