Clearing cache
Hello, everyone.
I'm working with someone else's CFC that contains many different methods, a few of which are queries that are being cached for two weeks.
One of the queries gets a list of table column names that is used to insert data into said table (gets column name, data type, is nullable).
For a few hours, I was wondering why only half of the form that is being submit was actually being updated in the database - now, I know; it's because the cached query wasn't getting the columns that I had just added, and the associated form fields.
I did some research and read, somewhere, that if you use the 'cachedwithin' parameter with a negative value, it will clear the cache.
Either someone is putting out bad information, or I'm on a server that has a setting that prevents that from happening:
I tried this with a negative value (-16 days, to overwrite the original 14 day cache) and as long as I kept it in place with a negative value, it was getting fresh data.
However, when I switched it back to the original 14 day cachedwithin value, it went back to getting the original cached data.
Is there a way to absolutely clear the cache of one query, so that even if the original cachedwithin parameter is used, it will start another fresh query and cache it, instead?
Thanks,
^_^
