Implement JQHTML function cache ID system and fix bundle compilation Implement underscore prefix for system tables Fix JS syntax linter to support decorators and grant exception to Task system SPA: Update planning docs and wishlists with remaining features SPA: Document Navigation API abandonment and future enhancements Implement SPA browser integration with History API (Phase 1) Convert contacts view page to SPA action Convert clients pages to SPA actions and document conversion procedure SPA: Merge GET parameters and update documentation Implement SPA route URL generation in JavaScript and PHP Implement SPA bootstrap controller architecture Add SPA routing manual page (rsx:man spa) Add SPA routing documentation to CLAUDE.md Phase 4 Complete: Client-side SPA routing implementation Update get_routes() consumers for unified route structure Complete SPA Phase 3: PHP-side route type detection and is_spa flag Restore unified routes structure and Manifest_Query class Refactor route indexing and add SPA infrastructure Phase 3 Complete: SPA route registration in manifest Implement SPA Phase 2: Extract router code and test decorators Rename Jqhtml_Component to Component and complete SPA foundation setup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
51 lines
1.4 KiB
PHP
Executable File
51 lines
1.4 KiB
PHP
Executable File
<?php
|
|
|
|
namespace App\RSpade\Commands\Restricted;
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
class Session_Cleanup_Command extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'session:cleanup';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = '[RESTRICTED] Session cleanup runs automatically via scheduled task';
|
|
|
|
/**
|
|
* Hide this command from artisan list
|
|
*
|
|
* @var bool
|
|
*/
|
|
protected $hidden = true;
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*/
|
|
public function handle()
|
|
{
|
|
$this->error('[RESTRICTED] This command is disabled.');
|
|
$this->info('');
|
|
$this->info('Session cleanup runs automatically via scheduled task:');
|
|
$this->info(' Session_Cleanup_Service::cleanup_sessions()');
|
|
$this->info(' Schedule: Daily at 3 AM');
|
|
$this->info('');
|
|
$this->info('Cleanup rules:');
|
|
$this->info(' - Logged-in sessions (login_user_id set): Delete if older than 365 days');
|
|
$this->info(' - Anonymous sessions (login_user_id null): Delete if older than 14 days');
|
|
$this->info('');
|
|
$this->info('To manually trigger cleanup:');
|
|
$this->info(' php artisan rsx:task:run Session_Cleanup_Service cleanup_sessions');
|
|
|
|
return 1;
|
|
}
|
|
}
|