Hi I have implemented cache in my system through custom logic which checks for cache expiry and then make a decision that it needs to get the data from cache or from db or files.
In local enviornment it is working fine but on server enviornment it always gets the data from db or files instead of cache
Server enviornment has a app pool associated with my app and contains 8 process workers and because of 8 worker process each process has its own cache it is fine but for example if Pid 1234 reads first time from Db then second time the same process ID should read from cache untill it expires but again it was reading from db although all the settings are fine and idle timeout for pool is also 0 and system has enough memory and resources as well. Any idea that why it was behaving like that?