mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 17:05:50 +02:00
34e98c68f0
typos more typos updated README typos
29 lines
498 B
PHP
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);
|
|
|
|
}
|
|
}
|