Find Jobs
Hire Freelancers

255047 cache javascript

N/A

En curso
Publicado hace más de 15 años

N/A

Pagado a la entrega
Hello, I don't know if this is possible, but I will give it a try. I have a website where the frontpage is cached. Every hour the data will be refreshed by a cronjob. Due to ad new features I asked someone to also put weblinks on the frontpage. So it is a .php file with a query that selects 3 records from the database and return the values. A part of the script looks like: $x = list_of_categories_for_item('l',0,$a[c],'<br />',0); $a = array_merge((array)$a,(array)$x); $a[site_url] = $s[site_url]; $pocet++; $aa["url$pocet"] = $a[url]; $aa["title$pocet"] = $a[title]; $aa["category$pocet"] = $a[categories_names]; $aa["image$pocet"] = $a[image_1]; $aa["n$pocet"] = $a[n]; get_detail_page_url('l',$a[n],$a[rewrite_url],$a[category],1); } $b = stripslashes(parse_part('[login to view URL]',$aa)); $lines = explode("\n",$b); foreach ($lines as $k=>$v) { $v = unreplace_once_html(trim($v)); $v = ereg_replace('"','\\"',$v); $complete .= "[login to view URL](\"$v\");\n"; } echo $complete; This file is included with javascriptcode: <script language="javascript" type="text/javascript" src="[login to view URL]"></script> What do I want? I want the data to cache to a textfile, and that i can include the textfile on the frontpage. So it does not everytime load the data. Or does this not make sense and is it not a good idea tio cache this data or does it not effect speed on frontpage?
ID del proyecto: 2001308

Información sobre el proyecto

Proyecto remoto
Activo hace 12 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos

Sobre este cliente

Bandera de NETHERLANDS
Lelystad, Netherlands
4,9
73
Forma de pago verificada
Miembro desde jun 21, 2006

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.