0
Started

"No thumbnail cache folder has been removed" when clearing thumbnail cache

me 4 months ago updated 3 months ago 7

Thumbnail Cache Clearing Error message

When I go to Folder -> Right Click -> Properties -> Clear Thumbnail Cache instead of clearing the cache you get a message that says, "No thumbnail cache folder has been removed"

I'm using a custom thumbnail folder in my customization config directory.  It generate thumbnails fine and the system has full access to the folders.

Thumbnail path:

/mnt/models/thumbnails/mnt/models/Minis/Genre - Named Designer/Cast and Play/36_Dragon Beholder/Beholder Dragon.stl/26500934

Thumbnail:

-rw-r--r-- 1 www-data www-data 253473 Jul 2 05:03 400_400_contain[1].png

I ensured the user and group were both www-data for the entire tree and set the permissions to 775

Under review

I take it you have specifically configured a thumbnail storage location. I will look into it.

Yes i didn’t want the thumbnails to sync back to my computers so i put them in a separate folder.

Thank you!  Let me know if you need any more information.

Started

The function currently clears only thumbnail cache folders that would otherwise reside in the same folders. This will be fixed to clear the custom cache location as well, but because it's not a small fix it will be included with the next update.

Fair enough.  Will it cause issues if I manually clear the cache by deleting the directories in the thumbnail location from the command line?

I was able to get the script to work in that it can exec() commands and I can manipulate the file.

However I cannot get the file listing screen (with the thumbnails or the list) to trigger a refresh of the cached thumbnail image.  When I delete the cached thumbnail, t.php successfully recreates the thumbnail with the newly edited file.   However the directory listing stubbornly holds on to the cached file.  Is there a way to dirty the file so that it refreshes, or to provide a post-execute hook that can execute javascript on the listing/directory page?  I could go and reload the thumbnail manually if there was a facility for running javascript on the directory page without it being in a popup (unless I'm just not seeing this)

Thanks as always.  This is great software and I really appreciate you taking time to help me out with this.

If I can get a few of these things a little more elegant I'd like to talk about setting up a paid version for helping digital sculptors release files to their subscribed users.

here's an example:

View of the file via t.php

View of the file in the directory listing

I would typically just force a reload of the file with javascript but don't know how to include or trigger that from a plugin.