sglee
asked on
CFQuery with cachedWithin="#CreateTimeSpan(0,1,0,0)#"
Hi,
I have the following code in CFM page.
<CFQUERY NAME="GetCustomers" datasource="DSN" cachedWithin="#CreateTimeS pan(0,1,0, 0)#">
SELECT *
FROM Customers
ORDER BY CustomerName
</CFQUERY>
What does cachedWithin="#CreateTimeS pan(0,1,0, 0)# mean?
The reason for asking is:
I just added a new customer to the CUSTOMER table in ACCESS. But that new customer does not show up in online Order Form when the user selects the customer from the customer drop-down menu.
And I suspect that it has something to do with cashedwithin statement.
How can I make it so that when I add a new customer or new part into the tables, they would show up in drop down menu on the webpage?
Thanks.
I have the following code in CFM page.
<CFQUERY NAME="GetCustomers" datasource="DSN" cachedWithin="#CreateTimeS
SELECT *
FROM Customers
ORDER BY CustomerName
</CFQUERY>
What does cachedWithin="#CreateTimeS
The reason for asking is:
I just added a new customer to the CUSTOMER table in ACCESS. But that new customer does not show up in online Order Form when the user selects the customer from the customer drop-down menu.
And I suspect that it has something to do with cashedwithin statement.
How can I make it so that when I add a new customer or new part into the tables, they would show up in drop down menu on the webpage?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
What if I don't want any data cached?
What if I just want the query to be executed whenever online order form is displayed?
What if I just want the query to be executed whenever online order form is displayed?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the information.
I will simply remove cachedWithin="#CreateTimeS pan(0,1,0, 0)# from CFQuery all together from now on.
As to the SELECT *, thanks for the additional information and I appreciate it.
I will simply remove cachedWithin="#CreateTimeS
As to the SELECT *, thanks for the additional information and I appreciate it.
ASKER
cachedWithin="#CreateTimeS