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

gif 插件缓存不合理 #900

Closed
vatebur opened this issue May 8, 2024 · 1 comment
Closed

gif 插件缓存不合理 #900

vatebur opened this issue May 8, 2024 · 1 comment

Comments

@vatebur
Copy link
Member

vatebur commented May 8, 2024

版本:1.8.0(最新版本)
涉及插件:gif
问题描述:如图,在使用gif生成图片时,会用到过期的缓存。需要多次执行命令才会刷新缓存
问题分析:
图片缓存在users/用户QQ号目录下
users/用户QQ号目录下/1.gif为用户头像
users/用户QQ号目录下/0.gif被@的人头像

缓存问题就是因为0.gif过期导致的
用户每次使用命令都要获取被@的人的头像,我觉得是不合理的

应该给被@的人也建一个目录放头像
如果对应文件夹下的头像文件存在,就不继续下载

image

@vatebur
Copy link
Member Author

vatebur commented May 9, 2024

#901

@fumiama fumiama closed this as completed in 8fa928d May 9, 2024
YumeMichi added a commit to YumeMichi/ZeroBot-Plugin that referenced this issue May 15, 2024
* https://github.com/FloatTech/ZeroBot-Plugin:
  feat: add plugin 抽扑克牌 (FloatTech#906)
  fix(workflow): pr not work properly
  Revert "feat: add plugin 抽扑克! (FloatTech#903)" (FloatTech#905)
  feat: add plugin 抽扑克! (FloatTech#903)
  [dish] fix: 关键词搜寻功能 (FloatTech#904)
  修复 FullMatchRule 中调用 ctx.NickName() 的 panic 问题 (FloatTech#902)
  optimize: gif plugin for image cache (FloatTech#901) (fix FloatTech#900)
  Update guessmusic plugin (FloatTech#898)
  make lint happy
  add robbery plugin (FloatTech#893)
  [mcfish]  Add one click selling (FloatTech#894)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant