Hi!

When a new animated gif is processed, the temporary files are not deleted from the temporay folder.
For example:

-rw------- 1 apache apache 0 Sep 25 10:30 animgif_support7nlRBp
-rw------- 1 apache apache 0 Sep 25 10:30 animgif_supportZ08kdN
-rw-r--r-- 1 apache apache 106869 Sep 25 10:30 resized--1569400213--1455086155.gif
-rw------- 1 apache apache 0 Sep 25 10:30 animgif_supportjIFSxk

Perhaps is missing some delete in code.

Regards,
JOINSO

Comments

JOINSO created an issue. See original summary.

joinso’s picture

Title: Temp files are not delleted » Temp files are not deleted
Cristina Gonzalo’s picture

Until we wait for a solution for that I post a solution to clear the temporary files.

Add a daily crontab to call this bash script:

#!/bin/bash
PATH_TOOLS=/USER/YOUR_TOOLS_PATH
mkdir -p $PATH_TOOLS/logs
LOG_FILE=$PATH_TOOLS/logs/rm_anim_gifs_tmp.log
find /tmp/resized--* -mtime +1 -exec rm {} \; > $LOG_FILE 2>&1
find /tmp/animgif_* -mtime +1 -exec rm {} \; >> $LOG_FILE 2>&1

Take in care that I assume that /tmp is your Drupal temporary folder.

Regards,
Cristina Gonzalo
JOINSO