Esempio n. 1
0
        public void Sweep()
        {
            var part = _orchardServices.WorkContext.CurrentSite.As <WarmupSettingsPart>();

            if (!part.Scheduled)
            {
                return;
            }

            _warmupUpdater.EnsureGenerate();
        }
        public void Generate()
        {
            if (Force)
            {
                _warmupUpdater.Generate();
            }
            else
            {
                _warmupUpdater.EnsureGenerate();
            }

            Context.Output.WriteLine(T("Generation finished"));
        }
Esempio n. 3
0
 public void ShouldDoNothingWhenNoUrlsAreSpecified()
 {
     _warmupUpdater.EnsureGenerate();
     Assert.That(_appDataFolder.ListFiles(WarmupFolder).Count(), Is.EqualTo(0));
 }