Cache files on local vps for future downloads

What is the problem you are having with rclone?

i have a windows vps. i mounted google drive. i storage movies and i use iis for webserver. visitors of main website can download through iis.
i have 200G free on vps.

this is my problem

for example when a user download a 2G movies.i want this 2 G file be stored is a temporary folder(cache) for next use.
for example i have a new movie on my site and 100 user request for downloading that file.the same file must be downloaded for the first time from google drive and rest of requests must be downloaded from the file on my vps. the cached one.
is it possible?

What is your rclone version (output from rclone version)

latest version

Which OS you are using and how many bits (eg Windows 7, 64 bit)

windows server 2016

Which cloud storage system are you using? (eg Google Drive)

google drive

The rclone config contents with secrets removed.

mount --vfs-cache-mode full google: m: --vfs-read-chunk-size 100M --vfs-read-chunk-size-limit 500M --vfs-cache-max-size "100G" --vfs-write-back "200h0m0s"

That's how the cache works.

You can limit or change how long something stays in cache by using:

--vfs-cache-max-age 336h

as an example. The cache is first in / first out unless it's still in use.

1 Like

thx for ur respond.
so u say the next requests for downloads will be downloaded from cache directory?
can i limit cache by size? instead of time.
is my mount config optimized? :slightly_smiling_face:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.