|
basically it is just my new script that is chewing up all the resources, and this is how it works:
- every hit in and hit out is stored to a flat file in raw format.
- every 5 mins a cronjob runs a cgi that goes through all the raw data and queries mysql (my database) and modifies my html (my site). i do this so i don't have to access mysql every hit in and hit out. plus my site does not have to change every hit, every 5 minutes is often enough.
the only thing is that the hits out have to modify my hits owed and all that shit to determine who is owed the next hit and it also checks to make sure unique hits are sent out, etc. that is the problem (because i have so many clickthrus). my hit out exit script code is chewing up all my cpu.
|