'Commit cache to database file'

def save(self):

    for (name, indexer_id) in self.cache.items():
        try:
            dbData = [x[u'doc'] for x in sickrage.srCore.cacheDB.db.get_many(u'scene_names', name, with_doc=True) if (x[u'doc'][u'indexer_id'] == indexer_id)]
            if len(dbData):
                continue
        except RecordNotFound:
            pass
        sickrage.srCore.cacheDB.db.insert({u'_t': u'scene_names', u'indexer_id': indexer_id, u'name': name})
