Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP URGENT
03-08-2011, 10:25 PM
Post: #1
HELP URGENT
HELP, my host is telling me i have CPU above 120 minutes per a day, how to make them below 60 min/per hour ????

I made chash time to be 1 second from admin panel, is that a problem?

Kind Regards
Svetoslav

My sites are closed. Google disconnect them and i loose all users.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-08-2011, 11:55 PM
Post: #2
RE: HELP URGENT
yes pls make it to deafult
it is important
Find all posts by this user
Quote this message in a reply
04-08-2011, 07:30 AM
Post: #3
RE: HELP URGENT
when your cache is 1...
your site has to connect to mysql every time a person opens a page...

when it is set to a higher number...
inistead of connecting to mysql,
your site will use the cached code that is stored in a file...

which results in less cpu usage...

Custom HTML/CSS/PHP
http://theorderofindividualacceptance.co...p.php?id=1
Find all posts by this user
Quote this message in a reply
05-08-2011, 08:14 PM (This post was last modified: 05-08-2011 08:23 PM by Role-Model.)
Post: #4
RE: HELP URGENT
But when is bigger than 1, my users can't log in to my site.
This cache make trouble to log users Sad
How to fix this ;(

How you make your users to login?

Can you send me the script?


Please Help

(04-08-2011 07:30 AM)Punktured Wrote:  when your cache is 1...
your site has to connect to mysql every time a person opens a page...

when it is set to a higher number...
inistead of connecting to mysql,
your site will use the cached code that is stored in a file...

which results in less cpu usage...

My sites are closed. Google disconnect them and i loose all users.
Visit this user's website Find all posts by this user
Quote this message in a reply
05-08-2011, 08:37 PM
Post: #5
RE: HELP URGENT
my login system is not complete yet, but i would not be comforetable posting it here because it has MANY edits to functions.php and i do not want to be responsible for people breaking their files...

if your login system uses post to log a user in...
i do not see how it would create problems...

my cache is on the recommended time,
and logins seem to work fine...

but as i said, my system is not complete yet...

Custom HTML/CSS/PHP
http://theorderofindividualacceptance.co...p.php?id=1
Find all posts by this user
Quote this message in a reply
06-08-2011, 12:00 AM (This post was last modified: 06-08-2011 12:17 AM by Role-Model.)
Post: #6
RE: HELP URGENT
Can i post my login system here to see it and tell me where is the problem?
I put my check code for login in video function :
global $kaynak_url,$comment_enable;
$baglanti=db_baglan();
$result = mysql_query("Select * from video where v_id=".$id);

//login check
if(isset($_SESSION['username'])){
$username = $_SESSION['username'];



if(mysql_affected_rows()>0)
{ $row = mysql_fetch_array($result);
$description=$row['description'];
$title=$row['title'];
$hit=$row['hit'];
$kaynak=$row['kaynak'];
mysql_close($conn);


Regards
Svetoslav


(05-08-2011 08:37 PM)Punktured Wrote:  my login system is not complete yet, but i would not be comforetable posting it here because it has MANY edits to functions.php and i do not want to be responsible for people breaking their files...

if your login system uses post to log a user in...
i do not see how it would create problems...

my cache is on the recommended time,
and logins seem to work fine...

but as i said, my system is not complete yet...

My sites are closed. Google disconnect them and i loose all users.
Visit this user's website Find all posts by this user
Quote this message in a reply
06-08-2011, 01:10 AM
Post: #7
RE: HELP URGENT
the way you have it... if working correctly...
would make it so only logged in users could watch videos...

personally i would not use the login checks in that function...
i would only...
limit comment making to members...
limit extra features, like rating system etc... to members...

Custom HTML/CSS/PHP
http://theorderofindividualacceptance.co...p.php?id=1
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: