diff --git a/code/Model/DynamoDbSession.php b/code/Model/DynamoDbSession.php index 5a39025..f77e250 100644 --- a/code/Model/DynamoDbSession.php +++ b/code/Model/DynamoDbSession.php @@ -108,12 +108,4 @@ public function register() { return $this->handler->register(); } - - /** - * Garbage collect the configured DynamoDB session table - */ - public function collect() - { - return $this->handler->garbageCollect(); - } } diff --git a/code/Tasks/GarbageCollectSessionCronTask.php b/code/Tasks/GarbageCollectSessionCronTask.php deleted file mode 100644 index 58cc255..0000000 --- a/code/Tasks/GarbageCollectSessionCronTask.php +++ /dev/null @@ -1,57 +0,0 @@ -schedule; - } - - public function output($message) - { - if (PHP_SAPI === 'cli') { - echo $message.PHP_EOL; - } else { - echo $message.'
'.PHP_EOL; - } - } - - public function process() - { - $dynamoSession = DynamoDbSession::get(); - if ($dynamoSession) { - $dynamoSession->collect(); - $this->output('DynamoDB session garbage collection finished'); - } else { - $this->output('DynamoDB session not enabled. Skipping'); - } - } -}