Clearing the Cache.
I am currently stuck with an clearing cache issue.
I have been saving an XML file wherein I shall be reading data, if and only if the XML IS PRESENT ON HARDDRIVE. If same is not present, the code shall generate first and next time it shall simply read and not jump into writing part again and again.
The issue that I am facing is, I am deleting the file manually going to that location, and checking whether it is reading the data, upon investigation, I found that IT IS REALLY READING THE DATA although the file is deleted.
I suspected that there may be some cache issue from where it is picking values, hence it fired the command
"sync; echo 3 > /proc/sys/vm/drop_caches"
but it is still doing the same pattern. Could you please help me out ??..
what kind of code?
See this http://www.linuxquestions.org/questi...memory-700774/
you might find it useful.
|All times are GMT -5. The time now is 01:55 PM.|