A method for updating data in a cache performed by a computing machine which is coupled to a primary database maintaining original data and to the cache maintaining data corresponding to the original data in the primary database, the method comprising, at the computing machine: - in response to receiving a first database query relating to a first data, determining (14, 14a, 14b), based on at least one given polling factor, whether to process the first database query by utilizing the cache or based on the primary database; - in response to determining, based on the at least one given polling factor, to process the first database query by utilizing the cache, processing the first database query by utilizing the cache including retrieving the first data from the cache and returning the retrieved first data; - in response to concluding processing the first database query, determining whether to update the first data in the cache; - if the determining whether to update the first data indicates to update the first data, updating the first data in the cache based on original first data in the primary database; and - wherein determining whether to update the first data in the cache comprises, - in response to determining that no previous second database request relating to the first data was received within a given time period, updating the first data in the cache; - in response to determining that at least one previous second database query relating to the first data was received within the given time period, inhibiting updating the first data in the cache in order to limit the number of cache updates occurring within the given time period; wherein the at least one given polling factor comprises at least one of: - a type of the first database query request, - an existence of the first data in the cache, - a polling error rate being a ratio between a number of access failures to the primary database and a number of access attempts to the primary database, - a number of write accesses on the original first data in a given timeframe, - an age of the first data in the cache, - a validity rate indicating a probability for first data in the cache being valid at a certain age, - an access frequency of the first data in the cache, - an update resource being a measure of computation costs and/or network load required to update the first data in the cache. - in response to receiving a first database query relating to a first data, determining (14, 14a, 14b), based on at least one given polling factor, whether to process the first database query by utilizing the cache or based on the primary database; - in response to determining, based on the at least one given polling factor, to process the first database query by utilizing the cache, processing the first database query by utilizing the cache including retrieving the first data from the cache and returning the retrieved first data; - in response to concluding processing the first database query, determining whether to update the first data in the cache; - if the determining whether to update the first data indicates to update the first data, updating the first data in the cache based on original first data in the primary database; and - wherein determining whether to update the first data in the cache comprises, - in response to determining that no previous second database request relating to the first data was received within a given time period, updating the first data in the cache; - in response to determining that at least one previous second database query relating to the first data was received within the given time period, inhibiting updating the first data in the cache in order to limit the number of cache updates occurring within the given time period; - in response to determining that no previous second database request relating to the first data was received within a given time period, updating the first data in the cache; - in response to determining that at least one previous second database query relating to the first data was received within the given time period, inhibiting updating the first data in the cache in order to limit the number of cache updates occurring within the given time period; - a type of the first database query request, - an existence of the first data in the cache, - a polling error rate being a ratio between a number of access failures to the primary database and a number of access attempts to the primary database, - a number of write accesses on the original first data in a given timeframe, - an age of the first data in the cache, - a validity rate indicating a probability for first data in the cache being valid at a certain age, - an access frequency of the first data in the cache, - an update resource being a measure of computation costs and/or network load required to update the first data in the cache.