Page 1 of 1

Average number of files in an opencart setup?

Posted: Wed Jan 20, 2021 12:06 am
by lukehackett85
Hello all,
Do you know what the average number of files would be in a base Opencart 3.0.3.2 setup without many addons?
I'm not after anything accurate, as I know the above is quite broad but I mean like 50k files? 100k?
Basically I've got 287k files, and I'm trying to change web hosting package but they won't let me because I have too many files (referred to as inodes)
Has anyone else ever had this problem? and is my particular opencart setup unreasonably big in terms of number of files? I've got about 22.2k products so I guess there are around 22.2k images + maybe an extra 50 for site images etc.
Best regards
Luke

Re: Average number of files in an opencart setup?

Posted: Wed Jan 20, 2021 12:55 am
by ADD Creative
If you look in image/cache you will see multiple sizes for each image for all the different views.

Re: Average number of files in an opencart setup?

Posted: Wed Jan 20, 2021 1:04 am
by straightlight
Basically I've got 287k files, and I'm trying to change web hosting package but they won't let me because I have too many files (referred to as inodes)
I'd simply switch to another hosting provider at this point.

Re: Average number of files in an opencart setup?

Posted: Wed Jan 20, 2021 1:06 am
by lukehackett85
They are trying to claim that all hosting providers would limit you to 250,000 inodes
They advertised unlimited storage space etc, but then say the above when you try to actually upgrade to it
If its not the case that all hosting providers would put these restrictions on is there anyone you could recommend as a new hosting provider?

Re: Average number of files in an opencart setup?

Posted: Wed Jan 20, 2021 1:10 am
by mikeinterserv
What country are you in ?
That's a large number of files but should not really be prohibitive on the right hosting platform.
I agree with straightlight
Time to find another host - one that will at LEAST give you a suggestion of what you need.

Re: Average number of files in an opencart setup?

Posted: Wed Jan 20, 2021 1:19 am
by straightlight
They are trying to claim that all hosting providers would limit you to 250,000 inodes
If that'd be the case, dedicated servers would remain under the same limitations as lower server packages and that definitely ain't the case. Otherwise, practically nobody or very limited people would be able to make their so-called investment on the internet and the internet wouldn't be called the internet.
They advertised unlimited storage space etc, but then say the above when you try to actually upgrade to it
Marketing perspective based on what their sales department needs to provide from their flows.
If its not the case that all hosting providers would put these restrictions on is there anyone you could recommend as a new hosting provider?
You'd have to provide the needs and the current resource you're using in order for Opencart supporters to provide an accurate solution on this one.

Re: Average number of files in an opencart setup?

Posted: Wed Jan 20, 2021 3:21 am
by lukehackett85
Thanks for the replies guys.

I am indeed looking for a new host.
-----------

You'd have to provide the needs and the current resource you're using in order for Opencart supporters to provide an accurate solution on this one.

---------
I'd need to be able to have 5-6 SQL databases as theres a couple of sites on my hosting (but it was just opencart that went over 250k files, I wasn't trying to move the others) and I'd need unlimited bandwidth, 150gb+ space (I use 70gb at the moment but I don't want to have to keep moving) and maybe some SSL standard certs included (1 would be minimum, anymore a bonus) my web host advertise 2gb memory on that package as well as unlimited storage too (The one I was trying to move to)

Re: Average number of files in an opencart setup?

Posted: Wed Jan 20, 2021 3:24 am
by mikeinterserv
lukehackett85 wrote:
Wed Jan 20, 2021 3:21 am

I'd need to be able to have 5-6 SQL databases as theres a couple of sites on my hosting (but it was just opencart that went over 250k files, I wasn't trying to move the others) and I'd need unlimited bandwidth, 150gb+ space (I use 70gb at the moment but I don't want to have to keep moving) and maybe some SSL standard certs included (1 would be minimum, anymore a bonus) my web host advertise 2gb memory on that package as well as unlimited storage too (The one I was trying to move to)
You REALLY should be running a dedicated server for this or at least an elephant VPS

Re: Average number of files in an opencart setup?

Posted: Wed Jan 20, 2021 3:25 am
by IP_CAM
Basically I've got 287k files
Just remove all cached images in the /image/cache/...... Sections,
and also remove all cached file content in all your other OC /cache/......
Sections you find, and your problem will be solved.
Ernie

Re: Average number of files in an opencart setup?

Posted: Wed Jan 20, 2021 3:55 am
by lukehackett85
Thanks again guys

IP_CAM, I will literally delete entire image/cache section as you suggest and see how it looks
Is there a way to stop them reoccurring there in such a great number? or do I just need to knock that folder down every so often?

Re: Average number of files in an opencart setup?

Posted: Wed Jan 20, 2021 4:48 am
by IP_CAM
No, there is not, OC will create cached Images in all sizes, as configured,
to have 'em available on pages without delay. And after you initialized
your Shop on the new Site again, they will be added, as soon as they are
beeing called the first time. But then, you won't have to remove 'em again.
And the same appies for cached File content. This File content can be cleared
out, once in a while, by use of a Cache Cleaning Admin Tool.
Ernie

Re: Average number of files in an opencart setup?

Posted: Wed Jan 20, 2021 7:14 pm
by paulfeakins
lukehackett85 wrote:
Wed Jan 20, 2021 12:06 am
Do you know what the average number of files would be in a base Opencart 3.0.3.2 setup without many addons?
It's around 3000 as described here:
https://www.antropy.co.uk/blog/the-lure-of-magento/

It's true most hosts will limit you to around 250,000 inodes but certain OC caching extensions will try to use more.

A solution might be to use a cron and the tmpwatch command to keep cache files under control.