= self::DAILY_LIMIT ) { Settings::update_log( $log ); return; } $log[ $today ][] = array( 'path' => $path, 'timestamp' => gmdate( 'c' ), ); // Keep only the latest 7 days for storage efficiency. $log = array_slice( $log, -7, null, true ); Settings::update_log( $log ); } }