



jscar wrote:we're validating URls and on reflection you're right about it having to spider everything to check for the modified date :/
The problem wqe're having is that CSE doesn't complete it's batch job everytime. We have a fairly big site (it's a local government one) and some nights CSE is having to spider, validate and link check 2000 pages. We have split the site up inot several .lst files and run each of these on a seperate night of the week.
jscar wrote:Anyway, what I'm trying to do is to reduce the amount of validation that CSE does. If I can get it to only validate recently updated pages that might be a help.



jscar wrote:Or are you saying that the Enterprise version can do more with the same amount of RAM?
jscar wrote:If you could write something to check the <meta name="Date.Modified" content="yyyy-mm-ddThh:mm:ssZ" scheme="W3CDTF" /> element and see if the date value is within the last month that would be fantastic. Even better if we could configure the date from which it checks. Is the functionality in CSE to write these programs ourselves?



jscar wrote:OK, thanks for that. Really appreciate your help on this.
jscar wrote:What language are those functions written in?
function onStartTag_meta() {
if hasAttWithStringValue('name','Date.Modified') {
if hasAtt('content') {
$contentvalue=getAttValue(getAttIndex('content'));
$docyear=getMidString($contentvalue,0,4);
$docmonth=getMidString($contentvalue,5,2);
$docday=getMidString($contentvalue,8,2);
#year=getValueInt(100);
#month=getValueInt(101);
#day=getValueInt(102);
#docdate=(#docyear*365)+(#docmonth*31)+#docday;
#todaydate=(#year*365)+(#month*31)+#day;
if (#todaydate-#docdate)>30 {
MessageEx(1033,MSG_MESSAGE,'Document date is '+$docyear+'-'+$docmonth+'-'+$docday+', which is old enough to be checked.');
}
else {
MessageEx(1033,MSG_MESSAGE,'Document date is '+$docyear+'-'+$docmonth+'-'+$docday+', which is new enough not to be checked.');
setFlag(2,2,0); // don't show future comments
setFlag(2,8,0); // don't show future warnings
setFlag(2,0x400,0); // don't show future messages
setFlag(2,0x1000000,0); // don't show future errors
}
}
}
}


jscar wrote:HI Albert,
again much appreciated. I'm out of the office but will try this on Monday. I would be interested in seeing this developed and would be prepared to do some beta testing. I'll have a play with what you've done and think of ways to improve from my perspective. I might even try and learn TNPL



jscar wrote:Hi Albert,
pages are generating an error:
The onStartTag_meta() function generated an error while executing: 98081402: misplaced or missing comma where token 'x400' found for setFlag() (source: ...show future warnings setFlag(2,0-=>x400<=-,0); // don't show future messages ...)




jscar wrote:We've not seen anything like this before. Is this a result of the TNPL or is the work we're doing just exposing something that was hidden before. (It wasn't seen in other reports that have been genrated since jscar.cfg was set up)


Users browsing this forum: Google [Bot] and 1 guest