golang / gddo

Go Doc Dot Org
https://godoc.org
BSD 3-Clause "New" or "Revised" License
1.1k stars 267 forks source link

manual refresh #10

Closed rogpeppe closed 12 years ago

rogpeppe commented 12 years ago

As the owner of a package, when I've pushed a package, I'd like to be able to tell gopkgdoc to refresh its cache of the package docs rather than letting it time out for itself.

cznic commented 12 years ago

I'm, using 'http://gopkgdoc.appspot.com/hook/github' in the our repositories post-receive URLs at github and our packages godocs at http://gopkgdoc.appspot.com/packages seem to be always up to date. But I don't know for sure if that service hook is still supported/handled by gopkgdoc - it used to be advertised somewhere on it's home page when the project was "younger".

rogpeppe commented 12 years ago

"I'm, using 'http://gopkgdoc.appspot.com/hook/github' in the our repositories post-receive URLs at github"

apologies, i don't understand this.

cznic commented 12 years ago

Yeah, the 'the' above is superfluous. This is what I mean (and sorry for my terrible English ;-)

http://goo.gl/yt8hG

rogpeppe commented 12 years ago

this would be great, thanks!

except...

i just had occasion to use this, and unfortunately it doesn't appear to work correctly (i updated some comments, hit that refresh button, and the comments were still old, although i checked that the source had been updated).

On 27 February 2012 22:02, Gary Burd reply@reply.github.com wrote:

I added a refresh button to the bottom of the package page.


Reply to this email directly or view it on GitHub: https://github.com/garyburd/gopkgdoc/issues/10#issuecomment-4204178

rogpeppe commented 12 years ago

On 1 March 2012 17:57, Gary Burd reply@reply.github.com wrote:

The time since the last refresh is displayed just before the refresh button.  Did you happen to notice if the time changed to "just now" after a refresh?

it did.

How long after submitting the changes did you hit the refresh button? GoPkgDoc scrapes web pages to fetch code from Google Project Hosting. I am wondering if there's a time lag in updating these pages because of caching on Google's end or propagation delays in Google Project Hosting.

several times, over the course of about 10 minutes AFAIR.

I added logging to help diagnose this problem.

cool. it would be good to have this working.