| 
5 | 5 | from .boards import BaseBoard, BoardRsConnect, BoardManual  | 
6 | 6 | from .cache import PinsCache, PinsRscCache, PinsAccessTimeCache, prefix_cache  | 
7 | 7 | from .config import get_data_dir, get_cache_dir  | 
8 |  | -from .rsconnect.fs import RsConnectFs  | 
9 | 8 | 
 
  | 
10 | 9 | 
 
  | 
11 | 10 | class DEFAULT:  | 
@@ -54,7 +53,7 @@ def board_deparse(board: BaseBoard):  | 
54 | 53 | 
 
  | 
55 | 54 |     prot = board.fs.protocol  | 
56 | 55 | 
 
  | 
57 |  | -    if isinstance(board.fs, RsConnectFs):  | 
 | 56 | +    if prot == "rsc":  | 
58 | 57 |         url = board.fs.api.server_url  | 
59 | 58 |         return f"board_rsconnect(server_url={repr(url)}{allow_pickle})"  | 
60 | 59 |     elif prot == "file":  | 
@@ -111,10 +110,17 @@ def board(  | 
111 | 110 |         fsspec.filesystem.  | 
112 | 111 |     board_factory:  | 
113 | 112 |         An optional board class to use as the constructor.  | 
 | 113 | +
  | 
 | 114 | +    Note  | 
 | 115 | +    ----  | 
 | 116 | +    Many fsspec implementations of filesystems cache the searching of files, which may  | 
 | 117 | +    cause you to not see pins saved by other people. Disable this on these file systems  | 
 | 118 | +    with `storage_options = {"cache_timeout": 0}`.  | 
 | 119 | +
  | 
114 | 120 |     """  | 
115 | 121 | 
 
  | 
116 | 122 |     if storage_options is None:  | 
117 |  | -        storage_options = {}  | 
 | 123 | +        storage_options = {"listings_expiry_time": 0}  | 
118 | 124 | 
 
  | 
119 | 125 |     # TODO: at this point should just manually construct the rsc board directly  | 
120 | 126 |     # from board_rsconnect...  | 
@@ -276,7 +282,7 @@ def board_github(  | 
276 | 282 |         versioned,  | 
277 | 283 |         cache,  | 
278 | 284 |         allow_pickle_read=allow_pickle_read,  | 
279 |  | -        storage_options={"org": org, "repo": repo},  | 
 | 285 | +        storage_options={"org": org, "repo": repo, "listings_expiry_time": 0},  | 
280 | 286 |     )  | 
281 | 287 | 
 
  | 
282 | 288 | 
 
  | 
 | 
0 commit comments