doc.silverstripe.org/app/code/UpdateDocsCronTask.php
David Alexander 34e98c68f0 Renamed methods and variables for clarity; tidied code
typos

more typos

updated README

typos
2016-02-14 15:17:56 -07:00

29 lines
498 B
PHP

<?php
class UpdateDocsCronTask implements CronTask
{
/**
* @return string
*/
public function getSchedule()
{
return "0 20 * * *";
}
/**
* @return BuildTask
*/
public function process()
{
//refresh markdown files
$refresh_task = new RefreshMarkdownTask();
$refresh_task->run(null);
//reindex markdown files
$reindex_task = new RebuildLuceneDocsIndex();
$reindex_task->run(null);
}
}