Timer System
The timer system manages the automatic disable functionality:
Timer Components
Cache-based timer storage
Automatic disable mechanism
Real-time countdown display
Auto-refresh functionality
Timer Workflow
// Setting timer
$duration = 'PT2H'; // ISO 8601 duration format
Cache::put('curtain:timer', Carbon::now()->add($duration));
// Checking timer
$endTime = Cache::get('curtain:timer');
if ($endTime && Carbon::now()->gte($endTime)) {
// Disable maintenance mode
$this->disable();
}
Timer Features
Duration validation
Automatic Cleanup
Cache Integration
Frontend Synchronization
Last updated