Fix `refresh.php` for crontasks