-- Chained dialog: Username → Next → Password → Save
---Settings:configureConnection.
functionSettings:configureConnection(parent)
@@ -610,8 +760,8 @@ function Settings:buildAuthMenu(parent)
text=_("Connection Setup"),
sub_item_table={
{
text=_("Server URL"),
help_text=_("The URL of your Booklore server (e.g., http://192.168.1.100:6060). This is where reading sessions will be synced."),
text=_("Server URLs"),
help_text=_("Set the Local URL (e.g., http://192.168.1.100:6060) and the Remote URL of your Booklore server. When automatic network switching is enabled the home WiFi name is captured here too."),
keep_menu_open=true,
callback=function()
self:configureServerUrl(parent)
@@ -643,6 +793,26 @@ function Settings:buildAuthMenu(parent)
parent:testConnection()
end,
},
{
text=_("Automatic network switching"),
help_text=_("When enabled the plugin uses the Local URL while connected to the configured home WiFi and the Remote URL otherwise. When disabled the Local URL is preferred (Remote is used as a fallback if Local is empty)."),
@@ -120,10 +120,24 @@ This advanced clear dialog removes **synced history records** only. Pending queu
## Clear Cache
Removes all entries from the `book_cache` table. The entry is greyed out when the cache is already empty.
Removes entries from the `book_cache` table along with all tables that reference it via foreign keys. The entry is greyed out when the cache is already empty.
The cache stores the mapping between each local file and its BookLore book ID, along with the file fingerprint and metadata such as title, author, and ISBN. Clearing it does not affect pending sessions, ratings, annotations, or bookmarks.
The following tables are cleared together (they would otherwise leave dangling foreign-key references):
The cache rebuilds automatically: the next time you open a book, the plugin recalculates its fingerprint, queries the server, and repopulates the cache entry.
-`book_cache` (rows not still referenced by pending queues)
-`synced_annotations`
-`synced_bookmarks`
-`rating_sync_history`
-`book_metadata`
> **Important:** This is a broad clear. Synced annotation/bookmark history, rating sync history, and stored book metadata are all removed.
-`book_cache` rows still referenced by any pending queue (these are kept to preserve queued sync data)
-`historical_sessions`
The cache rebuilds automatically: the next time you open a book, the plugin recalculates its fingerprint, queries the server, and repopulates the cache entry. Synced history tables repopulate as future sync activity occurs.
> Use this after reorganising your library (for example, after moving many files to different folders) to force the plugin to rebuild all file-path-to-book mappings cleanly. No confirmation dialog is shown - the cache is cleared immediately.