Just md5() the relevant search parameters or the API call URL/XML. That gives a SQL safe, filename safe value. Make sure you don't include any parameters that are unique on every call in the md5 string or you'll never get a cache hit. (e.g. dynamically generated ISO time values like used with endTimeFrom, or unique customids) Just add those params to the URL after doing the md5 and before fetching from ebay And make sure your code is aware that cached items can be expired and either loads new data or skips expired items.
There are currently no experts identified for this topic. Can you answer questions in this topic area? Community members who provide answers that are marked as correct earn reputation and may become recognized as topic experts.