Jump to content
Sign in to follow this  
Paolo Bru

Modulo Gsitemap 1.7.1 + funzione Cron

Recommended Posts

Sperando di fare cosa gradita, condivido una piccola modifica effettuata al modulo Google sitemap 1.7.1

Ho aggiunto una funzione al modulo e un file cron.php per poter lanciare la generazione del site map attraverso un cron del server, in modo da rigenerarla in modo regolare, senza che lo debba fare il cliente finale.

Configurazione

1- Aprire il file /modules/gsitemap/cron.php

2- Alla linea 14 impostare una propria chiave di sicurezza

3- Aggiungere il seguente comando per lanciare lo script:

http://url_shop/modules/gsitemap/cron.php?secure_key=XXXXXXXXXXX

dove XXXXXXXXXXX è la parola chiave memorizzata nel file.

gsitemap.zip

  • Like 2

Share this post


Link to post
Share on other sites

Bravo Paolo B.

appena posso lo provo, buona idea

ciaooo

Share this post


Link to post
Share on other sites

Nice addition to the Presto Change Gsitemap module.
Remember that the SECRET KEY cannot contain any special URL Characters like %&? etc.
So use only Letters and numbers.

Short installation doc:
* Upload module
* Edit /modules/gsitemap/cron.php and insert a new SECRET KEY
* Add the following line to your cron (using directadmin/cpanel etc) :

wget "http://WEBSITE_URL_HERE/modules/gsitemap/cron.php?secure_key=SECRET-KEY"


* Change the text : WEBSITE_URL_HERE to your website url

Test the validity of your url by either pasting it in the address bar (without wget) or from the ssh console (with wget)

ys

  • Like 1

Share this post


Link to post
Share on other sites

Great!

thank you guys! :-)
that's just what I was looking for.. works perfectly.

Share this post


Link to post
Share on other sites

It could be great for 1.4.1 but it is not working on our system!

we just use the default gsitemap as v.1.6

how it could be a 1.7.1????? is this a really different version?????

is it compatible with presta 1.4???

Share this post


Link to post
Share on other sites

Potete speigarmi in modo un po' più semplice la funzione di questo modulo? xD

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More