for cron task with [safe_mode on]
Merge pull request #12 from hzlzh/master

for cron task with [safe_mode on]