JotCache has three possibility to refresh cached pages to the latest content:
- recache (refresh only pages which are already in page cache (expired and not-yet-expired))
- crawler, crawlerext (goes through page links and requests each link to load)
Difference between crawler and crawlerext is only in way how site pages are scanned.
When you like to refresh pages already stored in the cache then it is necessary to use 'recache' plugin.
Use in cron_recache.php :
define('JOTCACHE_PLUGIN_NAME', 'recache');
1. Recache with recache_cron.php allows selective recaching with setting value of column 'recache' in DB table #__jotcache to value '1' for all pages which have to be recached.
For recache 100 newest cached pages modify code in cron_recache.php in following way >
original code :
$query = $db->getQuery(true);
$query->clear();
$query->update($db->quoteName('#__jotcache'))
->set('recache=1');
new code :
$query = $db->getQuery(true);
$query->clear();
$query->update($db->quoteName('#__jotcache'))
->set('recache=1')->order('`ftime` DESC LIMIT 100');
2. Yes it is possible - set code to (take care to write 'crawlerext' and not 'crawlertext'):
define('JOTCACHE_PLUGIN_NAME', 'crawlerext');
3. Any recache process is limited in process time with parameter setting 'max_execution_time' in php.ini.
N.B. Some additional information to cron setting with EasyCron you can find in JotCache help
kbase.jotcomponents.net/jotcache:help:v50j3x:joteasycron