TOPIC: How setup a scheduled cronjob each 5 minutes?

How setup a scheduled cronjob each 5 minutes? 05 Nov 2012 20:31 #65

Hi,
I use the jot component from many months and it works very well,
but my website is too big and slow, and I want know how to setup a scheduled cronjobs using the jotcache system to maintain own component compatibilities with the generated cache by script..

Thanks for the attention.
Regards,
Giuseppe

Joomla version : 2.5
JotCache version : 3
site template: yootheme
system plugins : a lot!
The administrator has disabled public write access.

Re: How setup a scheduled cronjob each 5 minutes? 06 Nov 2012 15:48 #66

Settings for cron run file www.jotcomponents.net/web-programming/jo...load/actual-versions are following :

1. Open downloaded file in text editor and change the line :
define('JPATH_BASE', dirname(__FILE__));
to
define('JPATH_BASE', '/path-to-joomla-root');
and save.

2. Copy customized file somewhere on your server (when you have access copy it outside web directory) :
/path-to-file/cron.php

3. Most of webhosting companies support cron activity with specific input form where you can add informations about cron job (follow their manual). Time for cron job start has following format :
Minute (0-59) Hours (0-23) Day (0-31) Month (0-12 [12 == December]) Day of the week(0-7 [7 or 0 == sunday])

For your usage to perform cache cleaning each 5 minutes is time string following :
*/5 * * * *

On the net you have plenty of tutorials/examples for cron job settings e.g. www.cyberciti.biz/faq/how-do-i-add-jobs-...-linux-or-unix-oses/
The administrator has disabled public write access.

Re: How setup a scheduled cronjob each 5 minutes? 07 Nov 2012 13:07 #67

Hi
Thanks you very much for your support.

Last question,
in this way when the cronjob run, the old cache is automatically deleted?



Joomla version : 2.5
JotCache version : 3
site template: yootheme
system plugins :
The administrator has disabled public write access.

Re: How setup a scheduled cronjob each 5 minutes? 07 Nov 2012 15:24 #68

Hi,
hem...the process start but dont make anything....
Output:
JotCache cron job finished. 0 expired cache items deleted.

but no cache was generated.
Thanks for the support

as root: /usr/bin/php /var/www/clients/client1/web1/web/cron.php

Joomla version : 2.5
JotCache version : 3
site template: yootheme
system plugins :
The administrator has disabled public write access.

Re: How setup a scheduled cronjob each 5 minutes? 07 Nov 2012 15:36 #69

Cron file published on this site (in actual versions download) does not delete active pages from cache storage. This script removes all cached pages which are already expired in time of cron job run - it is so called cache garbage collection.

Wait with start of cron job after expiration time of cached pages and you shall see how they are removed (you can also use dedicated logging - when enabled in JotCache plugin).
The administrator has disabled public write access.

Re: How setup a scheduled cronjob each 5 minutes? 07 Nov 2012 16:01 #70

Ah ok!
Therefore I will run first your script to delet expired cache and after run my cronjob to generate full cache!

Now I'm using this: wget -r -l 1 –p  -q –-convert-links www.mysite.com

Joomla version : 2.5
JotCache version : 3
site template: yootheme
system plugins :
The administrator has disabled public write access.

Re: How setup a scheduled cronjob each 5 minutes? 08 Nov 2012 01:08 #71

Ok,
therefore the script clean all files that are expired depending from the value of Cache Lifetime set on the Jot Plugin Cache?

Sorry for countinuos questions but is for clearly understand what I'm making.

Thanks for support.
Regards.

Joomla version : 2.5
JotCache version : 3
site template: yootheme
system plugins :
The administrator has disabled public write access.

Re: How setup a scheduled cronjob each 5 minutes? 08 Nov 2012 06:40 #72

Yes.
The administrator has disabled public write access.

Re: How setup a scheduled cronjob each 5 minutes? 08 Nov 2012 10:12 #73

Thanks you very much,
I have solved with this cronjob:

/usr/bin/php /var/www/clients/client1/web1/web/cron.php && wget -r -l 1 –p  -q –-convert-links www.mysite.com

Joomla version : 2.5
JotCache version : 3
site template: yoothme
system plugins :
The administrator has disabled public write access.
Time to create page: 0.364 seconds
We have 75 guests and no members online
Copyright © 2015 JotComponents
We have 75 guests and no members online
Copyright © 2017 JotComponents