Force phplist to re-fetch Top Level Domains.

Question from a client recently; why won’t my phplist installation subscribe an @something.london email address?

phplist still stores a default list of TLDs in admin/inc/userlib.php –  as a fallback for the TLD list it now stores in the internet_tlds row of the phplist_config database table.  

By default it checks and fetches new TLDs every 180 days.

You can override this behaviour by temporarily adding the line:

define('TLD_REFETCH_TIMEOUT',1200);

to config/config.php and waiting for 1200 seconds / 20 minutes, checking that the internet_tlds row has been updated and replacing the config definition with its default value;

define('TLD_REFETCH_TIMEOUT',15552000);

The public URL listing the TLDs is defined in admin/init.php as:

define('TLD_AUTH_LIST', 'https://www.phplist.com/files/tlds-alpha-by-domain.txt');

and used within admin/lib.php within:

function refreshTlds()

Leave a Reply

Your email address will not be published. Required fields are marked *