Hi, everyone
I populate a Chained Select field with gform_chainedselects_import_file filter where expiration time is set to 60 seconds. See filter below. CSV-file is updated via FTP.
Problem is that the selection list is not updating after 60 seconds, or whatever value I set for expiration.
The form will update - after hours. Seems random.
I can force an update by changing ‘url’ from HTTPS: to HTTP: in the filter, so the filter is working - just not with the expiration timer.
Any ideas appreciated.
Ketil
add_filter( ‘gform_chainedselects_import_file_4_10’, ‘set_barn_d2’, 10, 3 );
function set_barn_d2( $import_file, $form, $field ){
$file_array = array(
‘url’ => ‘http://testingtesting.no/wp-content/plugins/gravityformschainedselects/kmbarn2.csv’,
‘expiration’ => 60
);
return $file_array;
}