p_module_bank->b_cache = var_InheritBool( p_this, "plugins-cache" );
AllocateAllPlugins( p_this, p_module_bank );
- if( p_module_bank->b_cache )
- CacheSave( p_this, p_bank );
config_UnsortConfig ();
config_SortConfig ();
}
if( !path )
continue;
+ size_t offset = p_module_bank->i_loaded_cache;
if( b_reset )
CacheDelete( p_this, path );
else
/* Don't go deeper than 5 subdirectories */
AllocatePluginDir( p_this, p_bank, path, 5 );
+ CacheSave( p_this, path, p_module_bank->pp_loaded_cache + offset,
+ p_module_bank->i_loaded_cache - offset );
free( path );
}