2 Comments

  1. Hi, not sure your cache key logic is right — your MD5 is of the prepared statement, but *before* substitution of the placeholders. This means that two different queries would return the same potentially cached result!

  2. Adam

    Hi Jason, good catch. There was an issue with the way that the cache key was generated if you had $use_cache set to false so I updated the code to create the MD5 after substitution. Thank you for finding that!

Leave a Reply

Your email address will not be published. Required fields are marked *