# How to refresh rclone cache on Windows

**URL:** <https://forum.rclone.org/t/how-to-refresh-rclone-cache-on-windows/4868>\
**Category:** Help and Support\
**Created:** [February 20, 2018, 4:45am UTC](https://forum.rclone.org/t/how-to-refresh-rclone-cache-on-windows/4868 "2018-02-20T04:45:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![drgreatscott](https://forum.rclone.org/user_avatar/forum.rclone.org/drgreatscott/32/8422_2.png) [@drgreatscott](https://forum.rclone.org/u/drgreatscott)\
**Post date:** [February 20, 2018, 4:45am UTC](https://forum.rclone.org/t/how-to-refresh-rclone-cache-on-windows/4868/1 "2018-02-20T04:45:58Z")

</div>

In UNIX, we can use kill -SIGHUP to refresh the cache. However there seems to be no equivalent of -SIGUP on Windows. Anyone know if there is a way to refresh the cache on Windows without restarting the mount?

Some background information:

I’m using rclone mount on Google Drive on a Windows 10 machine:  
GD -\> rclone crypt -\> rclone cache -\> rclone mount

I am mounting it with --cache-db-purge --dir-cache-time=3h --cache-info-age=3h, but some new folders are not shown long after 3 hours until I restart the mount, while other new files got refreshed/shown correctly. Seems to be a bug somewhere but I have not observed enough of it to precisely report it. The exact parameters I used to mount is: mount crypt: X: --config=“C:\Program Files\rclone\rclone.conf” --no-checksum --allow-other --max-read-ahead=5M --dir-cache-time=3h --cache-info-age=3h --buffer-size=0k --cache-chunk-no-memory --cache-chunk-size=5M --cache-total-chunk-size=50M --cache-db-purge --cache-dir=T:\rclone\ --cache-chunk-path=T:\rclone\ --cache-db-path=T:\rclone\ --cache-chunk-clean-interval=1m --cache-read-retries=30 --cache-workers=4 --cache-rps=4 --tpslimit=4 --bwlimit=4000 --low-level-retries=10 --retries=10 --contimeout=2m --log-file=T:\rclone\rclone.log --vfs-cache-mode=writes --vfs-cache-max-age=1m  
(The parameters look weird because I’m testing it to seed rare torrents, with a RAM disk for the cache files to save disk writes.)

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [February 20, 2018, 9:26am UTC](https://forum.rclone.org/t/how-to-refresh-rclone-cache-on-windows/4868/2 "2018-02-20T09:26:44Z")

</div>

> [@drgreatscott](#):
>
> In UNIX, we can use kill -SIGHUP to refresh the cache. However there seems to be no equivalent of -SIGUP on Windows

Sending signals to running processes in an OS independent way is a hard problem and one i haven't solved.

I think to make it work in windows would require running a little webserver within rclone and then using another rclone command say `rclone control refresh-cache` or something like that.

There may be an easier way, I'm not sure!

---

<div class="post-metadata">

**Author:** ![spicypixel](https://forum.rclone.org/user_avatar/forum.rclone.org/spicypixel/32/1704_2.png) [@spicypixel](https://forum.rclone.org/u/spicypixel)\
**Post date:** [February 20, 2018, 2:11pm UTC](https://forum.rclone.org/t/how-to-refresh-rclone-cache-on-windows/4868/3 "2018-02-20T14:11:56Z")

</div>

To cross post ncws own post [Cache - ability to purge directory cache without purging cached files?](https://forum.rclone.org/t/cache-ability-to-purge-directory-cache-without-purging-cached-files/4839/8) would probably help on windows too.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [March 4, 2020, 12:43am UTC](https://forum.rclone.org/t/how-to-refresh-rclone-cache-on-windows/4868/4 "2020-03-04T00:43:40Z")

</div>

Closed on March 4, 2020, 12:43am UTC


