Увы, чуда не произошло.Насколько понимаю в отличии от чистильщика от Ris, должна быть меньше нагрузка на сервер.
Сделал на тестовом сервере копию рабочего сайта. Страртанул скрипт. Четыре минуты думало. Точно также заткнулось на большой таблице в миллион строк.
[root@****** public_html]# /usr/bin/perl /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
ok
[root@****** public_html]#
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
DBD::mysql::st execute failed: MySQL server has gone away at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 80, <CONF> line 71.
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /home/******/web/sub.******.ru/public_html/upload/cron_cleaner.pl.php line 81, <CONF> line 71.
ok
[root@****** public_html]#