Managing a data cache for a computer system

    公开(公告)号:GB2505179A

    公开(公告)日:2014-02-26

    申请号:GB201214824

    申请日:2012-08-20

    Applicant: IBM

    Abstract: A method and system which manages a data cache for a computer system by identifying inaccurate responses to if-modified-since (IMS) requests, and disabling caching for the data source corresponding to the inaccurate response. The method comprises maintaining a cache for one or more data resources requested by a client process, and in response to a request from said client process for a cached data resource sending a first request to a server process for said data resource, and sending a second request to said server process for an indication of whether or not said data resource has been modified since said data source was most recently cached (e.g. IMS request) 308. If the response to the second request indicates that the said data resource is unchanged then said cached copy of said data resource is compared to the copy of said data resource returned in response to said first request so as to determine whether said response to said second request is inaccurate 311. If the response to said second request comprises a copy of said data source then said cached copy of said data resource is compared to the copy of said data resource returned in response to said second request so as to determine whether said response to said second request is inaccurate 315. Caching is disabled 321 for said data resource if a predetermined number of inaccurate responses 318 to said second requests associated with said data resource arc identified. The requests may be sent during an initialization phase 307 for the cache data source.

Patent Agency Ranking