Cache front page results
This commit is contained in:
parent
f4ca9e2dbc
commit
d40dc21627
5 changed files with 82 additions and 89 deletions
|
@ -85,14 +85,6 @@ func (db *roDB) IncDownloads(ID string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (db *roDB) GetVisitedBooks(num int) (books []Book, err error) {
|
||||
return db.db.GetVisitedBooks(num)
|
||||
}
|
||||
|
||||
func (db *roDB) GetDownloadedBooks(num int) (books []Book, err error) {
|
||||
return db.db.GetDownloadedBooks(num)
|
||||
}
|
||||
|
||||
func (db *roDB) GetTags() ([]string, error) {
|
||||
return db.db.GetTags()
|
||||
func (db *roDB) GetFrontPage() FrontPage {
|
||||
return db.db.GetFrontPage()
|
||||
}
|
||||
|
|
Reference in a new issue