Commit d7b25d62 authored by Aria Givi's avatar Aria Givi

removed cronjob call, added outputs to feed download script

parent 81f721fe
......@@ -71,6 +71,7 @@ class UpdateKelkooFeed extends Command
$archivesInDirectory = scandir(config_path() . $this->localFeedFilePath);
foreach ($archivesInDirectory as $file) {
if(is_file(config_path() . $this->localFeedFilePath . "/" . $file)) {
echo "Deleting old file \"" . $file . "\"\n";
unlink(config_path() . $this->localFeedFilePath . "/" . $file);
}
}
......@@ -127,7 +128,7 @@ class UpdateKelkooFeed extends Command
}
/**
* Extracts the previously downloaded archives into one .xml file and after that deletes the old previous one
* Extracts the previously downloaded archives into one .xml file and after that deletes the old one
*/
private function extractReplaceFeedFiles() {
$archivesInDirectory = scandir(config_path() . $this->localFeedFilePath);
......
......@@ -28,8 +28,6 @@ class Kernel extends ConsoleKernel
$schedule->command('requests:gather')->everyFifteenMinutes();
$schedule->command('requests:useragents')->everyFiveMinutes();
$schedule->command('feeds:update')->dailyAt('10:00');
$schedule->call(function () {
DB::table('monthlyrequests')->truncate();
DB::disconnect('mysql');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment