CoonDog wrote:
If I generate all panel and gallery thumbs for 200,000 images that would 600,000 files total. My server max files is 250,000 so I would need 3 servers. My gallery only gets a handful of hits a month and have been running files.gallery for a couple years with no cache. 100% have to run with no cache or delete every now and then.
Yes, this is possible in Files Gallery, but depending on your settings and images, it's only possible with relatively extreme compromises. At least one of the below would need to be true:
- You have disabled thumbnails entirely.
- You are loading original size images as thumbnails (imagine loading 100 x thumbnails x 5 MB, which would require loading 500 MB into browser, just for some thumbnails, and would require extreme amounts of memory to hold the images).
- You are resizing images "on demand" for every single image/thumbnail for every single visitor, every single time they visit the page/images. Not only would it be extremely slow, but it would require so much CPU that it would bring any server to it's knees. The only scenario where this might even work, is if there is only 1 visitor and the images are relatively small.
Because of the above, and because X3 can't operate "without" thumbnails (like Files Gallery), disabling cached thumbnails is not an OPTION. I do understand your issue with MAX NODES on your server, but there really isn't any way we can offer useful thumbnails in a photo gallery website application, without storing resized images as thumbnails.
If you really need to do it, and you think it will work for you, you could edit the code directly. Open
/app/parsers/slir/index.php, and comment out line 493:
// if(!file_put_contents($this->cache_path, $data)) $this->error('Failed to save cache ' . $this->cache_path, 500);
The above should still create the thumbnail, and serve it to browser, without saving the thumbnail. Normally, this would be a bad idea, as it will cause your server to constantly having to resize all image requests.
CoonDog wrote:I guess the question was can you disable render cache like you can in with false in files.gallery?
With the above code edit yes, although Files Gallery has a few reasons why it could be useful to disable resize cache.
CoonDog wrote:If not I am completely fine with the cron job to delete cache when it gets to 20,000 files this way it never maxes out my server. Thanks for the help!
This might be useful to maintain temporary cache on the server, but it seems like an ineffective solution.
May I ask, why not just stick to Files Gallery in this case?