Added chaching, and significantly improved Menu loading times after first

This commit is contained in:
Pablu23
2024-03-01 14:54:25 +01:00
parent a8ba8728dc
commit b7f2a389cd
3 changed files with 27 additions and 25 deletions

View File

@@ -160,8 +160,8 @@ func (s *Server) LoadCurr() {
func (s *Server) LoadThumbnail(mangaId int) (path string, err error) {
strId := strconv.Itoa(mangaId)
s.Mutex.Lock()
defer s.Mutex.Unlock()
//s.Mutex.Lock()
//defer s.Mutex.Unlock()
if s.ImageBuffers[strId] != nil {
return strId, nil
}