Changeset 755 for trunk/DNSDB.pm


Ignore:
Timestamp:
06/02/17 17:44:00 (7 years ago)
Author:
Kris Deugau
Message:

/trunk

Make sure zones with ALIAS records actually get fully refreshed on each
export, other configuration nothwithstanding. See #55.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r754 r755  
    62096209      #  - the cache file does not exist
    62106210      #  - the cache file is empty
     6211      #  - the zone contains ALIAS pseudorecords, which need to cascade changes from the upstream CNAME farm at every opportunity
     6212      if ( ($dbh->selectrow_array("SELECT count(*) FROM records WHERE domain_id = ? AND type=65300", undef, $domid))[0] ) {
     6213        $changed = 1;  # abuse this flag for zones with ALIAS records
     6214      }
    62116215      if (!$self->{usecache} || $self->{force_refresh} || $changed || !-e $cachefile || -z $cachefile) {
    62126216        if ($self->{usecache}) {
Note: See TracChangeset for help on using the changeset viewer.