feat: site audit settings and the nightly crawl
- Site audit tab (UI-SPEC C20): crawl_schedule, crawl_max_pages (10-50 000), crawl_delay (100-5000 ms), crawl_keep (1-50) and generic_anchors seeded with the en and pl lists; ranges refuse with lagoon::validation.between on the screen and through the API - the crawler reads its limits and generic anchors from the settings; crawls beyond crawl_keep are deleted with their pages and issues - seo:crawl [--scheduled] and the nightly schedule entry at 02:30 (P33-40): off does nothing, weekly runs on Mondays in app.timezone - TestCrawlSchedule
This commit is contained in:
14
schedule.go
Normal file
14
schedule.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package seo
|
||||
|
||||
import "git.golem15.com/golem15/summercms/modules/pact"
|
||||
|
||||
// Schedule runs seo:crawl --scheduled every night at 02:30 app time
|
||||
// (P33-40): the command does nothing while the Site audit setting
|
||||
// crawl_schedule is off, and runs a weekly schedule on Mondays only.
|
||||
func (p *Plugin) Schedule() []pact.ScheduledCommand {
|
||||
return []pact.ScheduledCommand{
|
||||
{Command: "seo:crawl", Args: []string{"--scheduled"}, Cadence: pact.DailyAt(2, 30)},
|
||||
}
|
||||
}
|
||||
|
||||
var _ pact.HasSchedule = (*Plugin)(nil)
|
||||
Reference in New Issue
Block a user