Page MenuHomePhabricator

Purge videos after move
Closed, DuplicatePublic

Description

Videos should be purged after move to start transcoding process (or at lest queue it in the transcode queue). We have currently a number of files not in the transcode queue but requiring transcode.

Videos:

MariaDB [commonswiki_p]> SELECT COUNT(img_name)
    -> FROM image
    -> WHERE img_media_type = "VIDEO"
    -> AND img_name NOT IN (SELECT
    -> transcode_image_name FROM transcode
    -> );
+-----------------+
| COUNT(img_name) |
+-----------------+
|            3387 |
+-----------------+
1 row in set (0.85 sec)

There are also a number of other untranscoded mediafiles.

Event Timeline

Would be better I think, if we could just move the derivatives as well. They are expensive to generate.

BTW, this probably used to work at some point, because a page purge (which happens after move I suspect) would also purge the derivatives, but we had to disable that quite some time ago.