Free Adult Tube-Video Script Forum

Full Version: HELP URGENT
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
yes pls make it to deafult
it is important
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...
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 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...
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...
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...
Reference URL's