LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Clearing the Cache. (http://www.linuxquestions.org/questions/programming-9/clearing-the-cache-717867/)

surisourabh 04-09-2009 01:25 AM

Clearing the Cache.
 
Hello All.

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 ??..

Hko 04-09-2009 05:54 PM

Quote:

Originally Posted by surisourabh (Post 3503206)
If same is not present, the code shall generate[...]

which code?
what kind of code?

vikas027 04-14-2009 05:08 AM

Quote:

Originally Posted by surisourabh (Post 3503206)
Hello All.

I am currently stuck with an clearing cache issue.


See this http://www.linuxquestions.org/questi...memory-700774/

you might find it useful.


All times are GMT -5. The time now is 06:18 AM.