Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: PMplanet has a new home

by bart (Canon)
on Feb 05, 2010 at 23:50 UTC ( #821672=note: print w/replies, xml ) Need Help??


in reply to Re: PMplanet has a new home
in thread PMplanet has a new home

Maybe you're not doing anything wrong.

I looked at the pmplanet logs of today, and the last thing I saw logged about you is that it threw out your data from the cache. Apparently it did that around the time that you left... And it was the first time it did that today. That means whatever you changed about your home node during the day while you were here, it wouldn't be visible for a long time (a few hours) before it finally shows up.

Yes, there is a node contents cache. The purpose is to spare the Perlmonks webservers a little and not bombard them with requests for home node contents, for every user that is around, every few minutes. The cache time is on the long side, from the point of view of us humans. But the webservers like it just fine that way...

Anyway, conclusion: next time you come around, you'll probably show up at the right location.

p.s. I think I'll add a button or something so people can manually remove their own home node from the home node cache, so you'll show up with the updated data on the next run. Within minutes.

Replies are listed 'Best First'.
Re^3: PMplanet has a new home
by theorbtwo (Prior) on Feb 07, 2010 at 11:39 UTC

    I always meant to do that, but it was one of the boring bits I never quite got around to.

Re^3: PMplanet has a new home
by WizardOfUz (Friar) on Feb 07, 2010 at 14:03 UTC
    I think I'll add a button or something so people can manually remove their own home node from the home node cache, so you'll show up with the updated data on the next run.

    Why not use the Recently Updated Home Nodes list for that?

      That sounds like a great idea, except:

      • It doesn't work reliably. I just changed something on my home node, and it doesn't appear in that list... You probably have to check "This is a significant update" for that.
      • There is no usable XML view. All I see is code.

        If you view your homenode in xml, there is "updated" (as in <node id="442602" title="planetscape" created="2005-03-27 04:28:58" updated="2008-01-24 22:33:38">)

        So perhaps if that date is within a certain time limit, you may want to look at their coordinates to see if they've changed?

        HTH,

        planetscape
        You probably have to check "This is a significant update" for that.

        Yes, I think so too.

        There is no usable XML view.

        This seems to work:

        #!/usr/bin/perl use strict; use warnings; open( my $fh, '<', "/home/joerg/dump.html" ) or die $!; my $html = do { local( $/ ); <$fh> }; close $fh; my @nodes; while ( $html =~ s!<tr><td><a href="\?node_id=(\d+)">([^<]+)</a></td>< +td>\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d</td></tr>!! ) { push @nodes, [ $2, $1 ]; } print "@{$_}\n" for @nodes;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://821672]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2020-07-09 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?