CodeIgniter Forums
Out of control getcontrollers file - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Out of control getcontrollers file (/showthread.php?tid=58462)



Out of control getcontrollers file - El Forum - 06-13-2013

[eluser]WhiskeyM1ke[/eluser]
In every single one of my codeigniter installation folders... I have over 95,000 files called "getcontrollers" that start "getcontrollers.1" and go on past "getcontrollers.95000". My host is about ready to lock my account because I have too many files hosted... and I'm sure this has to be the reason.

What is this file? I know it's linked to CodeIgniter because it's only located in codeigniter installations. How do I stop it?


Out of control getcontrollers file - El Forum - 06-13-2013

[eluser]WhiskeyM1ke[/eluser]
Well I figured something out, the files are created when a cron is run from one of my controllers. It's like it creates a home directory log every time it runs... starting to think this isn't a CI problem.


Out of control getcontrollers file - El Forum - 06-14-2013

[eluser]Pert[/eluser]
As you said, not a CI problem Wink

You might be able to disable cron job log on your server, depending on the hosting company. You could also try to delete old logs in controller, so it would never reach such a high file count.


Out of control getcontrollers file - El Forum - 06-16-2013

[eluser]WhiskeyM1ke[/eluser]
Yea think I fixed the problem. I was using "wget" as the cron command (my thought was to have the server access my url so I could have access to all the CI instance goodies). Anyhow, I've switched to "php ..." and converted the controller to a pure PHP script, and haven't had the problem since.