[DXCC ID] All checking now goes via the class

This commit is contained in:
Andreas Kristiansen
2026-01-22 11:55:30 +01:00
parent 159ec65014
commit 09e892fc33
7 changed files with 388 additions and 370 deletions

View File

@@ -1,6 +1,10 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
use Wavelog\Dxcc\Dxcc;
require_once APPPATH . '../src/Dxcc/Dxcc.php';
/**
* DXCluster Cache Library
* Centralizes cache key generation and invalidation for DXCluster features.
@@ -76,8 +80,8 @@ class DxclusterCache {
$this->deleteFile($this->getWorkedCallKey($logbook_key, $callsign));
// Look up DXCC and continent from callsign
$this->CI->load->model('logbook_model');
$dxcc_info = $this->CI->logbook_model->dxcc_lookup($callsign, date('Y-m-d'));
$dxccobj = new Dxcc($date);
$dxcc_info = $dxccobj->dxcc_lookup($callsign, date('Y-m-d'));
if (!empty($dxcc_info['adif'])) {
$this->deleteFile($this->getWorkedDxccKey($logbook_key, $dxcc_info['adif']));