[Enhancement]: Cache currently playing audiobooks on SSD / cache folder #2551

Open
opened 2026-04-25 00:08:19 +02:00 by adam · 6 comments
Owner

Originally created by @StarPicard on GitHub (Feb 6, 2025).

Type of Enhancement

Cache currently playing audiobooks on SSD / cache folder

Describe the Feature/Enhancement

Hi, as described in a discussion i would be glad to have a function (checkbox / option) to temporarily copy the audiobooks I have just listened to, into a “cache” folder.

Why would this be helpful?

The reason is, that I could mount such a folder via docker on an SSD. This would have the advantage of not always having to access the HDD when continuously listening to an audiobook, but would still save storage space on the SSD.

I am aware that the idea may be a special case, but perhaps more people would benefit from the idea.

Future Implementation (Screenshot)

Just another checkbox at settings page: "Cache currently playing audiobooks".
Maybe with a input box "last days"

Audiobookshelf Server Version

v2.18.1

Current Implementation (Screenshot)

No response

Originally created by @StarPicard on GitHub (Feb 6, 2025). ### Type of Enhancement Cache currently playing audiobooks on SSD / cache folder ### Describe the Feature/Enhancement Hi, as described in a [discussion](https://github.com/advplyr/audiobookshelf/discussions/3900) i would be glad to have a function (checkbox / option) to temporarily copy the audiobooks I have just listened to, into a “cache” folder. ### Why would this be helpful? The reason is, that I could mount such a folder via docker on an SSD. This would have the advantage of not always having to access the HDD when continuously listening to an audiobook, but would still save storage space on the SSD. I am aware that the idea may be a special case, but perhaps more people would benefit from the idea. ### Future Implementation (Screenshot) Just another checkbox at settings page: "Cache currently playing audiobooks". Maybe with a input box "last <x> days" ### Audiobookshelf Server Version v2.18.1 ### Current Implementation (Screenshot) _No response_
adam added the enhancement label 2026-04-25 00:08:19 +02:00
Author
Owner

@JBlond commented on GitHub (Feb 13, 2025):

You can already do this.

    volumes:
      - /hdd/audiobooks:/audiobooks
      - /ssd/abs/metadata:/metadata
      - /sdd/abs/config:/config
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
@JBlond commented on GitHub (Feb 13, 2025): You can already do this. ```yaml volumes: - /hdd/audiobooks:/audiobooks - /ssd/abs/metadata:/metadata - /sdd/abs/config:/config - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ```
Author
Owner

@jostyee commented on GitHub (Feb 22, 2025):

I'd like to have a config setting to move cache folder to /dev/shm

@jostyee commented on GitHub (Feb 22, 2025): I'd like to have a config setting to move cache folder to `/dev/shm`
Author
Owner

@JBlond commented on GitHub (Feb 22, 2025):

I'd like to have a config setting to move cache folder to /dev/shm

You are not really supposed to use /dev/shm directly. It is part of the RAM and not a path to put files there. Everything in /dev/shm will be destroryed on every reboot or shutdown.

@JBlond commented on GitHub (Feb 22, 2025): > I'd like to have a config setting to move cache folder to `/dev/shm` You are not really supposed to use /dev/shm directly. It is part of the RAM and not a path to put files there. Everything in /dev/shm will be destroryed on every reboot or shutdown.
Author
Owner

@jostyee commented on GitHub (Feb 23, 2025):

I'd like to have a config setting to move cache folder to /dev/shm

You are not really supposed to use /dev/shm directly. It is part of the RAM and not a path to put files there. Everything in /dev/shm will be destroryed on every reboot or shutdown.

Correct me if I'm wrong, it's cache so we don't need to persistent the data, and I don't reboot my NAS often.

@jostyee commented on GitHub (Feb 23, 2025): > > I'd like to have a config setting to move cache folder to `/dev/shm` > > You are not really supposed to use /dev/shm directly. It is part of the RAM and not a path to put files there. Everything in /dev/shm will be destroryed on every reboot or shutdown. Correct me if I'm wrong, it's cache so we don't need to persistent the data, and I don't reboot my NAS often.
Author
Owner

@nichwall commented on GitHub (Feb 23, 2025):

ABS uses a cache for library browsing and API responses, but doesn't cache media files in memory.

The mobile apps support downloading books for offline listening. Is there a reason you don't just download the book for offline listening? Then the server doesn't need to access the media files at all.

@nichwall commented on GitHub (Feb 23, 2025): ABS uses a cache for library browsing and API responses, but doesn't cache media files in memory. The mobile apps support downloading books for offline listening. Is there a reason you don't just download the book for offline listening? Then the server doesn't need to access the media files at all.
Author
Owner

@topes1 commented on GitHub (May 17, 2025):

ABS uses a cache for library browsing and API responses, but doesn't cache media files in memory.

The mobile apps support downloading books for offline listening. Is there a reason you don't just download the book for offline listening? Then the server doesn't need to access the media files at all.

I agree with the op. As someone with limited space on my phone/multiple phones I use abs on. It would be great to have this. It would help with the longevity of my drives and less noise as well.

@topes1 commented on GitHub (May 17, 2025): > ABS uses a cache for library browsing and API responses, but doesn't cache media files in memory. > > The mobile apps support downloading books for offline listening. Is there a reason you don't just download the book for offline listening? Then the server doesn't need to access the media files at all. I agree with the op. As someone with limited space on my phone/multiple phones I use abs on. It would be great to have this. It would help with the longevity of my drives and less noise as well.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2551