jquery / jquery.org

jQuery Foundation web site content
https://jquery.org
Other
49 stars 71 forks source link

Should the updates folder be there and available? #71

Closed agcolom closed 10 years ago

agcolom commented 10 years ago

I just came across https://jquery.org/updates/ The content is a year old. I'm not sure this is supposed to be there or available.

scottgonzalez commented 10 years ago

It should be removed. It was replaced by meetings.jquery.org.

@jquery/infrastructure Can someone track this down and remove it? Ping me if you have any questions or need help.

Krinkle commented 10 years ago

Hm.. I thought maybe it was stale cache (wordpress supercache). While those are in cache (blog.jquery.com aka eol1.jquery.com, e.g. /var/www/jquery.org/htdocs/wp-content/cache/supercache/jquery.org/updates/2013/03/04/index.html.gz). Removing those just re-creates them on demand. They're being served by WordPress, and should be removed through it.

Isn't the database re-created on each deployment? It would appear they're just laying around in the wp_posts table and being served as such. They could be removed manually through mysql (or through the wp-admin interface), but not sure if that is the desirable solution.

Do we want to leave a redirect?

scottgonzalez commented 10 years ago

jquery.org/updates isn't managed via jquery-wp-content, so there shouldn't be anything bringing back posts if they really get deleted. You can't actually log in to jquery.org/updates though, you can only log in to jquery.org (even when on jquery.org/updates/wp-admin). I'm not really sure how to track this down. Perhaps @nacin has an idea?

Krinkle commented 10 years ago

It's not a separate wordpress install afaik. I found the posts in wp_posts in the jqueryorg database. And the location of the cache file also indicates they're being served and cached by the main WordPress install there. So one should be able to delete them via the main wp-admin.

scottgonzalez commented 10 years ago

They don't exist in the main wp-admin interface. But jquery.org also doesn't have its own database. If it does, it must be the old one for jquery.org/updates.

Krinkle commented 10 years ago

Hm.. no. The one I found is for all of jquery.org and is also configured that way (/srv/jquery.org/htdocs/wp-config.php points to DB jqueryorg). However the problem is that I was thrown off by Active Servers. It's what got me to look at eol1 in the first place.

However jquery.org isn't served from that, it's served from jq01.

Krinkle commented 10 years ago

Ah, and so it is.

jquery.org -> 70.32.120.34 -> jq01:

server {
    server_name  jquery.org;
    root         /var/www/wordpress/;

        location /updates {
            proxy_cache off;
            proxy_pass http://old-jquery-org;
            proxy_set_header Host jquery.org;
        }

upstream old-jquery-org {
    server 216.70.110.52:80;
}

216.70.110.52 <- eol1.jquery.com <- (used to be jquery.org)

/etc/apache2/sites-enabled
...
/var/www/jquery.org/htdocs/wp-config
...
jqueryorg.wp_posts
.. - updates
.. - updates/2012
.. - updates/2013
.. - updates/2013/03
..

So I guess we just need to remove that /updates handler and maybe add a redirect to http://meetings.jquery.org.

scottgonzalez commented 10 years ago

:-)