Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-09-2009, 01:25 AM   #1
LQ Newbie
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Unhappy 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 ??..
Old 04-09-2009, 05:54 PM   #2
Senior Member
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 110Reputation: 110
Originally Posted by surisourabh View Post
If same is not present, the code shall generate[...]
which code?
what kind of code?
Old 04-14-2009, 05:08 AM   #3
Senior Member
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,300

Rep: Reputation: 102Reputation: 102

Originally Posted by surisourabh View Post
Hello All.

I am currently stuck with an clearing cache issue.

See this

you might find it useful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clearing cache memory paragkalra Linux - Newbie 3 12-02-2008 04:22 AM
clearing CD cache grayFalcon Programming 1 09-21-2006 04:55 PM
clearing cache, web cache on linux varunbihani Linux - General 2 12-08-2005 12:02 PM
DNS cache clearing n.antonio Linux - Software 0 05-11-2003 08:44 PM
clearing cache waxiem Linux - General 1 03-02-2003 09:42 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration