Cache.flush

Forces all pending writes in the cache to be committed to disk.

For doing so it will iterate the glib.main_context.MainContext associated with cache's session as long as needed.

Contrast with soup.cache.Cache.dump, which writes out the cache index file.

class Cache
void
flush
()