Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I get Import to re-read my data file if I change it outside of OpenDX?

0
Posted

How do I get Import to re-read my data file if I change it outside of OpenDX?

0

This is an unfortunate artifact of caching. Since the input of import, the filename, does not change then the module does not run. Logic probably should be added to check on the timestamp of the file, but no one has yet addedd this feature. A simple hack is to force Import to reload a file by appending a “space” to the end of the file name. This can be repeated, that is, any new file string will force a new import. Alternatively, this can be done programatically by feeding the filename and a dummy integer into a Format module that simply does “%s” and ignores the incoming integer. By bumping the integer one can force a “new” filename that is identical to the previous and forces a reload when the dummy integer changes to a value not previously used. The simplest work-around is to use the “Reset Server” option under the Connection Menu. This throws away all the cached information which was saved from previous runs of OpenDX. You could also turn the cache off when OpenDX is started by usi

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123