Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望添加自动刷新缓存功能 #472

Closed
1bit-cc opened this issue Nov 25, 2021 · 3 comments
Closed

希望添加自动刷新缓存功能 #472

1bit-cc opened this issue Nov 25, 2021 · 3 comments
Labels
attention pay attention

Comments

@1bit-cc
Copy link

1bit-cc commented Nov 25, 2021

希望能够添加定时刷新缓存和上传文件后自动刷新缓存的功能。

@qkqpttgf
Copy link
Owner

强调,本项目基于serverless,只是兼容了一下VPS,所有功能要考虑各serverless平台的特性。所有的serverless平台的设立,就是为了访问时苏醒过来工作一下,没人访问时就休眠,请以此为基础来考虑。
另外,缓存这个东西,访问首页,我就缓存首页的内容,点进去访问某个目录,我就缓存这个目录的内容,你想定时刷新哪个目录的缓存呢?每个目录都定时一下?
【注意,不像其它基于VPS的项目,都是将所有目录结构保存到本地,不刷新就永远是这样。这个项目不是基于VPS,缓存是真缓存,过半小时这个缓存就死掉了,不用你刷新都会去请求的】
上传文件后不刷新这个问题,这个有点麻烦,就等半小时吧……

@1bit-cc
Copy link
Author

1bit-cc commented Nov 25, 2021

强调,本项目基于serverless,只是兼容了一下VPS,所有功能要考虑各服务器less平台的特性。所有的serverless平台的设立,就是为了访问时苏醒过来工作一下,没人访问时就休眠,请以此为基础来考虑。另外,缓存这个东西,访问首页,我就缓存首页的内容,点进去访问某个目录,我就缓存这个目录的内容,你想定时刷新哪个目录的缓存呢?每个目录都定时一下? 【注意,不像其它基于VPS的项目,都是将所有目录结构保存到本地,不刷新就永远是这样。这个项目不是基于VPS,缓存是真缓存,过半小时这个缓存就死掉了,不用你刷新都会去请求的】 上传文件后不刷新这个问题,这个有点麻烦,就等半小时吧......

了解了,谢谢解答!

@1bit-cc 1bit-cc closed this as completed Nov 25, 2021
@qkqpttgf qkqpttgf pinned this issue Nov 25, 2021
@lslqtz
Copy link

lslqtz commented Feb 14, 2022

common.php 的 if ($GET['action']=='upbigfile') 前加一句 savecache('path' . $path1, '', $_SERVER['disktag'], 1); // clear cache. 就可以实现上传刷新缓存了,和删除文件缓存是一个逻辑

@qkqpttgf qkqpttgf added the attention pay attention label Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
attention pay attention
Projects
None yet
Development

No branches or pull requests

3 participants