Skip to content

Commit

Permalink
store_items_external
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Nov 15, 2021
1 parent fb65f83 commit 6d80194
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Command/PointPurge.php
Expand Up @@ -79,6 +79,7 @@ protected function configure() {
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
$this->cronService->purgeRestoringPoints();
$this->cronService->purgeRemoteRestoringPoints();

return 0;
}
Expand Down
1 change: 1 addition & 0 deletions lib/Cron/Manage.php
Expand Up @@ -107,6 +107,7 @@ protected function run($argument) {

// TODO: purge old restoring points.
$this->cronService->purgeRestoringPoints();
$this->cronService->purgeRemoteRestoringPoints();

// uploading
foreach ($this->pointService->getLocalRestoringPoints() as $point) {
Expand Down
5 changes: 4 additions & 1 deletion lib/Service/ConfigService.php
Expand Up @@ -69,6 +69,7 @@ class ConfigService {
public const PACK_REMOTE_INDEX = 'pack_remote_index';

public const STORE_ITEMS = 'store_items';
public const STORE_ITEMS_EXTERNAL = 'store_items_external';
public const ENCRYPTION_KEYS = 'encryption_keys';
public const FORCE_CBC = 'force_cbc';
public const TIME_SLOTS = 'time_slots';
Expand All @@ -93,7 +94,8 @@ class ConfigService {
self::DELAY_UNIT => 'd',
self::ALLOW_WEEKDAY => 0,
self::PACK_BACKUP => '1',
self::STORE_ITEMS => 4,
self::STORE_ITEMS => 3,
self::STORE_ITEMS_EXTERNAL => 5,
self::ENCRYPTION_KEYS => '{}',
self::FORCE_CBC => 0,
self::TIME_SLOTS => '23-5',
Expand Down Expand Up @@ -377,6 +379,7 @@ public function getSettings(): array {
self::PACK_COMPRESS => $this->getAppValueBool(self::PACK_COMPRESS),
self::PACK_ENCRYPT => $this->getAppValueBool(self::PACK_ENCRYPT),
self::STORE_ITEMS => $this->getAppValueInt(self::STORE_ITEMS),
self::STORE_ITEMS_EXTERNAL => $this->getAppValueInt(self::STORE_ITEMS_EXTERNAL),
self::MOCKUP_DATE => $this->getAppValueInt(self::MOCKUP_DATE)
];
}
Expand Down
6 changes: 6 additions & 0 deletions lib/Service/CronService.php
Expand Up @@ -367,6 +367,12 @@ public function purgeRestoringPoints(): void {
}
}

/**
*
*/
public function purgeRemoteRestoringPoints(): void {
}


/**
* @param array $points
Expand Down

0 comments on commit 6d80194

Please sign in to comment.