[GH-ISSUE #192] Question about clearing cache #84

Closed
opened 2026-02-25 22:34:19 +03:00 by kerem · 1 comment
Owner

Originally created by @yoldar on GitHub (Sep 14, 2018).
Original GitHub issue: https://github.com/flyimg/flyimg/issues/192

Hi again :)

I'm using Flyimg as image optimizer for picture gallery. Original images are stored on other micro-service. When user opens image gallery, frontend app changes src of images to Flyimg service. As you can understand Flyimg do not used as original image storage. It used as image optimizer to minimize traffic which send to user.

My question is: Is it normal to periodically clean folders(/var/www/html/web/uploads and /var/www/html/var/tmp) items to free space and to not let container itself growth in volume?

P.s. I have binded that folder to host already

volumes:
      - ./volumes/image-optimizer/uploads:/var/www/html/web/uploads:rw
      - ./volumes/image-optimizer/var:/var/www/html/var:rw

P.s.p.s. I mean "rm -rf" by for example crontab.

Originally created by @yoldar on GitHub (Sep 14, 2018). Original GitHub issue: https://github.com/flyimg/flyimg/issues/192 Hi again :) I'm using Flyimg as image optimizer for picture gallery. Original images are stored on other micro-service. When user opens image gallery, frontend app changes src of images to Flyimg service. As you can understand Flyimg do not used as original image storage. It used as image optimizer to minimize traffic which send to user. My question is: Is it normal to periodically clean folders(/var/www/html/web/uploads and /var/www/html/var/tmp) items to free space and to not let container itself growth in volume? P.s. I have binded that folder to host already ``` volumes: - ./volumes/image-optimizer/uploads:/var/www/html/web/uploads:rw - ./volumes/image-optimizer/var:/var/www/html/var:rw ``` P.s.p.s. I mean "rm -rf" by for example crontab.
kerem 2026-02-25 22:34:19 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@sadok-f commented on GitHub (Sep 14, 2018):

Hi @yoldar !

You can of course clear up the 2 folders var/tmp and web/uploads, Flyimg has to fetch the original image again and generate a new requested one.

<!-- gh-comment-id:421471753 --> @sadok-f commented on GitHub (Sep 14, 2018): Hi @yoldar ! You can of course clear up the 2 folders `var/tmp` and `web/uploads`, Flyimg has to fetch the original image again and generate a new requested one.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flyimg#84
No description provided.