Hi ,
i understand basic concept of cache ,
but one thing i cant able to understand , even i saw some example ,
assume ,
my first request is 9am , now new update information coming to cache , then another same content request from other user , now system get content from cache file instead of DB,
example 1 : i set the cache expire for 1hour ,
Now time is 9am ,
9am : First request : now read the content DB and store into cache file, 9.15AM: second request : now system retrive content from cache instead of retrieve from DB, 9.24am: Few contents are modified in the DB,
9.30am: Third request : NOW system retrieve the content from DB or Cache , How system know DB is updated ,
This is my doubt :
Example 2: If am not set the expiry time :,
Then When System retrieve and store the new updated content from the Database to cache file,
Am stuck up here
I appologies if this thread is duplicate,