I stumbled across the factoid that you can add the cachedwithin attribute to your cfhttp requests. I’ve a somewhat large csv file that I’m accessing using the lucee version of cfhttp:
http cachedwithin="#createtimespan(0,1,0,0)#" url=“http://localhost/CBC/Assets/Account.csv” method=“get” delimiter="," firstrowasheaders=true textqualifier="""" name=“csv”;
I’ve also tried using the cfhttp function, with no success either.
Following the code above I follow up with loop query=‘csv’. It’s in this loop that I extract all the data I need. Problem I’m having is that after I add cachedwithin="#createtimespan(0,1,0,0)#" the code runs one time just fine, but on subsequent calls I get an error that states the csv query doesn’t exist.
Is this an error in Lucee, or do I need to add something to my http call, an attribute possibly, that will hold the cached version of the http call? I’ve been attempting to add the cachedwithin attribute for several versions of Lucee, all with the same outcome.
I’m currently running Lucee 220.127.116.11-SNAPSHOT. Again, I’ve been testing cachedwithin for several versions. I"m running Lucee on a mac mini, macOS High Sierra.