skoruppa LiteCart Fan Von Poland Mitglied seit Aug. 2018 skoruppa 3 Feb. 2023 10:29 Hey Tim! I have a different question, can I somehow "limit" the amount of files in the cache folder? I have around 43k products on my page and after some time'm forced to clear the cache as the amount of files there rise to enormous size and clogs my hosting. Right now, I have a limit of 2 millions files on my accounts and unfortunately, after a few months lite cart will just use out my whole limit. Usually when this happens, I just clear the cache and after some time everything goes back to normal (from 2 million files in cache to "only" 180k) This is something I can live with, but was wondering if I can prevent it from happening
tim Founder Von Sweden Mitglied seit Mai 2013 tim 3 Feb. 2023 17:49 The two letter cache subfolders have the purpose to divide this into several folders just to reduce the amount of files. Maybe you could use 3 or 4 letters for the cache subfolders? https://github.com/litecart/litecart/blob/2.5.1/public_html/includes/library/lib_cache.inc.php#L262 https://github.com/litecart/litecart/blob/2.5.1/public_html/includes/functions/func_image.inc.php#L94