Author Topic: Lentitud al cargar el index  (Read 12619 times)

0 Members and 1 Guest are viewing this topic.

Offline Mefisto

  • Pre-Newbie
  • Posts: 3
    • View Profile
Lentitud al cargar el index
« on: November 20, 2002, 10:03:59 PM »
Hola amigos,

he instalado este estupendo script, pero después de unos días usándolo, es un milagro que carge el index.php :( la lentitud se ha ido agravando según se agregaban imágenes, pero en este momento es casi imposible poder navegar.

He leido en los foros de inglés el eliminar en el include/constants.php
a poner:

define('SHOW_RANDOM_IMAGE', 0);
define('SHOW_RANDOM_CAT_IMAGE', 0);

esto no ha solucionado nada, y ya no me quedan más recursos, ya que el resto de scripts funcionan perfectamente, a velocidad buena. Espero que alguien me pueda dar alguna solución a esto.

Muchas gracias.

Mefisto

PD: www.canalxvid.com --> esta es la web

Offline cisiodon

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Lento
« Reply #1 on: November 24, 2002, 12:01:37 PM »
Hello,

Por quê você não utiliza juntamente com o MySQL, o AdoDB !!!

Com o AdoDB você pode CAchear páginas, tabelas do MySQL, Variáveis e tudo o mais.
Simplesmente com uma única linha de "include" em seu Index.php.

Em meu sistema o AdoDB conecta com o MySQL, seleciona as variáveis que eu quero, as tabelas que eu quero e minha performance aumentou em 90%.

Qualquer dúvida e linha de comando para inserir no index.php email :

info@netforum.com.br


Para descarregar o AdoDB : http://www.weblogs.com/ADODB.


Hasta pronto !!

Mike
http://www.netforum.com.br

Running PostNuke Multi Theme -  X-Forum - WebCam Portal - 4Images gallery
Banner Exchange 1:1
Paint Board on Line with Gallery and Blogs
Powered by AdoDB

I am not the owner of the world... But I am the son of it!

Offline Mefisto

  • Pre-Newbie
  • Posts: 3
    • View Profile
Lentitud al cargar el index
« Reply #2 on: December 08, 2002, 08:45:46 PM »
HOla, gracias por tu respuesta,

he intentado poner ADODB, pero no he sabido hacerlo, ¿podrías indicar las lineas que hay que poner en el index.php para conseguirlo?

Un saludo
Mefisto

Offline cisiodon

  • Full Member
  • ***
  • Posts: 157
    • View Profile
AdoDB
« Reply #3 on: December 08, 2002, 08:59:47 PM »
include("ruta_de_adodb/adodb.inc.php");
$ADODB_CACHE_DIR = 'd:\\temp'; //para windows
$db = NewADOConnection('mysql');
 $db->Connect("IP de la maquina", "nombre", "senha", "4images");// ip,nombre user(mysql),contrasena,nombre de banco
 


if (isset($cache)) $rs = $db->CacheExecute(3600,'select * from 4images_images');
 else $rs = $db->CacheExecute('select * from 4images_images');
if (isset($cache)) $rs = $db->CacheExecute(3600,'select * from 4images_categories');
 else $rs = $db->CacheExecute('select * from 4images_categories');
if (isset($cache)) $rs = $db->CacheExecute(3600,'select * from 4images_postcards');
 else $rs = $db->CacheExecute('select * from 4images_postcards');
if (isset($cache)) $rs = $db->CacheExecute(3600,'select * from 4images_comments');
else $rs = $db->CacheExecute('select * from 4images_comments');
if (isset($cache)) $rs = $db->CacheExecute(3600,'select * from 4images_sessionvars');
 else $rs = $db->CacheExecute('select * from 4images_sessionvars');
while (!$rs->EOF) {
$rs->MoveNext();
}


================

3600 = tiempo em segundos que se quiere cachear. usted puede cambiarlos


Hasta Pronto !!!

Mike
http://www.netforum.com.br

Running PostNuke Multi Theme -  X-Forum - WebCam Portal - 4Images gallery
Banner Exchange 1:1
Paint Board on Line with Gallery and Blogs
Powered by AdoDB

I am not the owner of the world... But I am the son of it!

Offline cisiodon

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Adodb
« Reply #4 on: December 08, 2002, 09:00:50 PM »
PS: Ponga en las primeras lineas del INDEX.PHP


Mike
http://www.netforum.com.br

Running PostNuke Multi Theme -  X-Forum - WebCam Portal - 4Images gallery
Banner Exchange 1:1
Paint Board on Line with Gallery and Blogs
Powered by AdoDB

I am not the owner of the world... But I am the son of it!

Offline Mefisto

  • Pre-Newbie
  • Posts: 3
    • View Profile
Lentitud al cargar el index
« Reply #5 on: December 09, 2002, 09:34:53 PM »
Gracias otra vez, ahora tengo un problema, y es que el mensaje que tengo ahora es el siguiente:

Quote

Warning: Unable to access d:\temp/b0 in /home/virtual/site2/fst/home/xvid/public_html/4images/adodb/adodb.inc.php on line 1133

Warning: fopen("d:\temp/b0/adodb_b08dcac58e1afbe327059ba1cc10a074.cache","a") - No such file or directory in /home/virtual/site2/fst/home/xvid/public_html/4images/adodb/adodb.inc.php on line 2865

Warning: Unable to access d:\temp/2b in /home/virtual/site2/fst/home/xvid/public_html/4images/adodb/adodb.inc.php on line 1133

Warning: fopen("d:\temp/2b/adodb_2b0f74052f3629762749f61dc831c02d.cache","a") - No such file or directory in /home/virtual/site2/fst/home/xvid/public_html/4images/adodb/adodb.inc.php on line 2865

Warning: Unable to access d:\temp/73 in /home/virtual/site2/fst/home/xvid/public_html/4images/adodb/adodb.inc.php on line 1133

Warning: fopen("d:\temp/73/adodb_73afdb018cd1ff732d7ff95a8ee5a0e1.cache","a") - No such file or directory in /home/virtual/site2/fst/home/xvid/public_html/4images/adodb/adodb.inc.php on line 2865

Warning: Unable to access d:\temp/f2 in /home/virtual/site2/fst/home/xvid/public_html/4images/adodb/adodb.inc.php on line 1133

Warning: fopen("d:\temp/f2/adodb_f2e4fe744f1552db4a8ee3e593f066ed.cache","a") - No such file or directory in /home/virtual/site2/fst/home/xvid/public_html/4images/adodb/adodb.inc.php on line 2865

Warning: Unable to access d:\temp/c3 in /home/virtual/site2/fst/home/xvid/public_html/4images/adodb/adodb.inc.php on line 1133

Warning: fopen("d:\temp/c3/adodb_c39c959e4f523ebc294fa71a2dafab34.cache","a") - No such file or directory in /home/virtual/site2/fst/home/xvid/public_html/4images/adodb/adodb.inc.php on line 2865


¿Alguna sugerencia?

Un saludo
Mefisto

PD: Siento molestarte tanto  :oops:

Offline cisiodon

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Ola
« Reply #6 on: December 09, 2002, 10:15:08 PM »
Pong las lineas de sua config ........

Mike
http://www.netforum.com.br

Running PostNuke Multi Theme -  X-Forum - WebCam Portal - 4Images gallery
Banner Exchange 1:1
Paint Board on Line with Gallery and Blogs
Powered by AdoDB

I am not the owner of the world... But I am the son of it!

Offline cisiodon

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Hi
« Reply #7 on: December 09, 2002, 10:18:50 PM »
mefisto,


Creo que error de direciones a directorio..

Drive\Temp ( o qualquer otro )  para windows "\"

Drive/temp ( o qualquer otro) para Unix "/"

Permisos de escribir en elos !!!


MIke
http://www.netforum.com.br

Running PostNuke Multi Theme -  X-Forum - WebCam Portal - 4Images gallery
Banner Exchange 1:1
Paint Board on Line with Gallery and Blogs
Powered by AdoDB

I am not the owner of the world... But I am the son of it!