|The stupid question is the question not asked
Re: Apache::DBI, DBI, DBD::MySql and MySQL cache?by blm (Hermit)
|on Mar 17, 2003 at 04:23 UTC
What version of mysql are you using?
According to the Mysql manual page mysql keeps in this cache a table of queries and the corresponding results. When an identical query is received the results out of the cache are returned. This is what one would expect. There is a big note:
NOTE: The query cache does not return stale data. When data is modified, any relevant entries in the query cache are flushed.
I am not sure but I would assume that since the table is not modified and the query is not modified the result would come from the cache. You can turn off the cache using options in the select query as noted (here).