If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Can I reduce the number of files to a lesser amount?

Can I reduce the number of files to a lesser amount?

Started by neonfyr on 9 Apr 2013, 5:38 AM · Views: 1,295

Results 1 to 17 of 17
9 Apr 2013, 5:38 AM
#1
neonfyr avatar

neonfyr

New Zenner

Join Date:
Dec 2012
Posts:
20
Plugin Contributions:
0

Post #1 by neonfyr

My website has been making error bugs recently, I figured it had to do with server space, but actually it has to do with number of files which are in the system.

I have purged the admin files and dumped the bug file bin ( I believe that's what it's called).

I called my host and they said it would be a complicated issue to move to a server, so I'd prefer to keep the configuration I have.

Can anyone suggest anything?

I think maybe deleting old customer orders would be a start, but the number of files, nearly 250,000 is pretty high!

Thanks,

Matthew

9 Apr 2013, 6:07 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #2 by gjh42

Orders are not in files, they are records in the database.
Where are the bulk of these 250,000 "files" located? You cleared the /logs/ folder (for v1.5.1)? If there were a lot of files there, there is a problem you need to correct, and it starts by looking at recent myDebug files to see what the error is.

9 Apr 2013, 6:08 AM
#3
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Post #3 by gilby

neonfyr:

I think maybe deleting old customer orders would be a start, but the number of files, nearly 250,000 is pretty high!Do you have 250,000 orders?
or is that 250,000 "files"
If it is files then depending on which version of zen you have they are probably error files in the /cache/ or /logs/ directory.
See what the errors are, fix them so they don't keep adding more files and then delete these error files.

Otherwise do you have "user tracking" installed? This can make the database large if not trimmed now and then.

How many products?
How many images?
Size of database?

9 Apr 2013, 3:56 PM
#4
uswebworx avatar

uswebworx

Zen Follower

Join Date:
Sep 2006
Location:
USA
Posts:
297
Plugin Contributions:
0

Post #4 by uswebworx

neonfyr:

My website has been making error bugs recently, I figured it had to do with server space, but actually it has to do with number of files which are in the system.

I have purged the admin files and dumped the bug file bin ( I believe that's what it's called).

I called my host and they said it would be a complicated issue to move to a server, so I'd prefer to keep the configuration I have.

Can anyone suggest anything?

I think maybe deleting old customer orders would be a start, but the number of files, nearly 250,000 is pretty high!

Thanks,

Matthew
Moving to a new server isn't hard for a seasoned host...........seriously they told you that?

As everyone else has said that is a ton of files!

Signature not needed

10 Apr 2013, 1:14 AM
#5
neonfyr avatar

neonfyr

New Zenner

Join Date:
Dec 2012
Posts:
20
Plugin Contributions:
0

Post #5 by neonfyr

Thank You all for your help, I'm researching the issue.

Not very smart when it comes to computers, more of a plant person =)

10 Apr 2013, 1:29 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #6 by kobra

A default install takes up about 25K of disk space and is comprised of only about 10,000 files

You need to answer what the size of your database is and how much disk space you are using

Zen-Venom Get Bitten

10 Apr 2013, 1:36 AM
#7
neonfyr avatar

neonfyr

New Zenner

Join Date:
Dec 2012
Posts:
20
Plugin Contributions:
0

Post #7 by neonfyr

I've talked to my web developer and realized there are a few copies of the site on the server, so that's one issue of why so many files.

There's not much space used total, but too many files

4,975.00 MB used space

255,611  of  262,144  used files

So I gather I need to delete the old copies of the site and clean up some of the extra files and also determine if the file build up is caused by another issue as well.

10 Apr 2013, 1:37 AM
#8
neonfyr avatar

neonfyr

New Zenner

Join Date:
Dec 2012
Posts:
20
Plugin Contributions:
0

Post #8 by neonfyr

Would there be an negative aspects of deleting old, unused copies of my site?

10 Apr 2013, 1:48 AM
#9
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Post #9 by gilby

neonfyr:

Would there be an negative aspects of deleting old, unused copies of my site?
You still need to find out where the majority of these "files" are
How many products do you have?
Do you have products in the hundreds of thousands?
and as a consequence how many images (files) do you have.
Even with many copies of your website you would be unlikely to have this many files (normally).

10 Apr 2013, 1:54 AM
#10
neonfyr avatar

neonfyr

New Zenner

Join Date:
Dec 2012
Posts:
20
Plugin Contributions:
0

Post #10 by neonfyr

No, a few hundred product listings.

10 Apr 2013, 2:08 AM
#11
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Post #11 by gilby

neonfyr:

No, a few hundred product listings.

Then you could have a hundred copies of your website without hitting this number of files.

There is something that is "creating" these files, maybe ask your host where the majority are if you can't find them.

I still feel your website is generating these files, probably error files.
find them, fix the error, delete the error files, done.

10 Apr 2013, 3:10 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #12 by drbyte

Strictly speaking, yes you should delete old unused duplicates of your site.
But the danger in telling you to do that is the awareness that it's hard to know whether you even know what "copies" are actually being used vs which are extras. (That's not meant as a slight against you ... it's merely an observation from statements you made yourself. Hopefully it doesn't offend you.)

It's also possible that the bulk of the excess "files" are old debug/error logs that are in one of those duplicate sites.
You said you cleared out old logs from your main site. But you didn't say whether you did the same in all your other backup/duplicate copies of sites you've got on your server.

General rule of thumb: don't keep stuff that doesn't belong. And if something is causing errors, find the cause of the error and fix it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 Apr 2013, 3:17 AM
#13
neonfyr avatar

neonfyr

New Zenner

Join Date:
Dec 2012
Posts:
20
Plugin Contributions:
0

Post #13 by neonfyr

Thanks for the help Dr. Byte.

I am pretty sure I know which are the bad ones with the help of my tech advisor and he's zipping those up for me and removing them.

I'm smart enough to know that's not a slight, I do want to ensure I don't do anything wrong, as I had some real panic attacks when the site is down =)

10 Apr 2013, 4:54 AM
#14
neonfyr avatar

neonfyr

New Zenner

Join Date:
Dec 2012
Posts:
20
Plugin Contributions:
0

Post #14 by neonfyr

Solved:

We removed the un-needed data, zipped it into one file and with all that gone, it is now more like 25,000 files, which is a bit nicer than 250,000!

Thank you!

10 Apr 2013, 4:55 AM
#15
neonfyr avatar

neonfyr

New Zenner

Join Date:
Dec 2012
Posts:
20
Plugin Contributions:
0

Post #15 by neonfyr

to clarify, it looks like the extra copies of the site had many files, perhaps one had a lot of error messages in it, or there could be another explanation like the default cart my host may have added.

10 Apr 2013, 5:36 AM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #16 by drbyte

Glad you got it sorted out!

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 Apr 2013, 8:10 AM
#17
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,779
Plugin Contributions:
2

Post #17 by picandnix

do you have zipped backups on your server space too? Each backup (via cpanel) could be another duplicate of your entire usage including your 'old copies' of your site.