add support for cache writethrough

git-svn-id: svn://10.0.0.236/trunk@7210 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timm%netscape.com
1998-08-04 01:06:09 +00:00
parent 79de90379f
commit d472fba684
2 changed files with 40 additions and 1 deletions

View File

@@ -105,7 +105,29 @@ public class SetupPlugin extends Plugin
return contents;
}
final public void SetCacheState( String filePath, boolean writeThrough )
{
if ( privilegeCheck() == false )
return;
try
{
File file = new File( filePath );
IniFileData iniFile = (IniFileData)iniFileCache.get( file );
if ( iniFile == null )
return;
iniFile.setCacheState( writeThrough );
}
catch ( Throwable e )
{
//Trace.TRACE( "caught an exception: " + e.getMessage() );
return;
}
}
final public String GetNameValuePair( String filePath, String sectionName, String valueName )
{
/* if ( privilegeCheck() == true )