I want queries and their results to cache, but get updated once per day.
I was going to use PHP to add a sort of dummy date string to queries, so that they change every day:
But I don't want to kludge all my queries. There must be a better way to do this. E.g., can the MySQL cache be scheduled to update once per day?
I was going to use PHP to add a sort of dummy date string to queries, so that they change every day:
Code:
"start of query WHERE ".date("d") = date("d")." AND rest of query"
But I don't want to kludge all my queries. There must be a better way to do this. E.g., can the MySQL cache be scheduled to update once per day?