# Chained Selects plugin, does not reload csv after expiration time

**URL:** <https://community.gravityforms.com/t/chained-selects-plugin-does-not-reload-csv-after-expiration-time/2436>\
**Category:** Get Help\
**Tags:** chained-selects, has-ticket\
**Created:** [August 9, 2019, 6:49pm UTC](https://community.gravityforms.com/t/chained-selects-plugin-does-not-reload-csv-after-expiration-time/2436 "2019-08-09T18:49:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ketil\_Oyesvold\_Melhu](https://avatars.discourse-cdn.com/v4/letter/k/958977/32.png) [@Ketil\_Oyesvold\_Melhu](https://community.gravityforms.com/u/Ketil_Oyesvold_Melhu)\
**Post date:** [August 9, 2019, 6:49pm UTC](https://community.gravityforms.com/t/chained-selects-plugin-does-not-reload-csv-after-expiration-time/2436/1 "2019-08-09T18:49:37Z")

</div>

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](http://testingtesting.no/wp-content/plugins/gravityformschainedselects/kmbarn2.csv)’,  
‘expiration’ =\> 60  
);  
return $file\_array;  
}

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [August 12, 2019, 2:45am UTC](https://community.gravityforms.com/t/chained-selects-plugin-does-not-reload-csv-after-expiration-time/2436/2 "2019-08-12T02:45:43Z")

</div>

I recommend opening a support ticket for this issue if you have not already:

[https://www.gravityforms.com/open-support-ticket/](https://www.gravityforms.com/open-support-ticket/)

---

<div class="post-metadata">

**Author:** ![Ketil\_Oyesvold\_Melhu](https://avatars.discourse-cdn.com/v4/letter/k/958977/32.png) [@Ketil\_Oyesvold\_Melhu](https://community.gravityforms.com/u/Ketil_Oyesvold_Melhu)\
**Post date:** [August 12, 2019, 10:10am UTC](https://community.gravityforms.com/t/chained-selects-plugin-does-not-reload-csv-after-expiration-time/2436/3 "2019-08-12T10:10:26Z")

</div>

Thank you, Chris.  
Done.

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [January 4, 2022, 5:20pm UTC](https://community.gravityforms.com/t/chained-selects-plugin-does-not-reload-csv-after-expiration-time/2436/4 "2022-01-04T17:20:51Z")

</div>


