Baseframe release

3 views
Skip to first unread message

Kiran Jonnalagadda

unread,
Jun 2, 2013, 3:08:47 PM6/2/13
to hasgee...@googlegroups.com
I've pushed out a release of Baseframe to PyPI:

This is a stable release. For the next cycle, I'm going to add support for caching via Flask-Cache as a mandatory requirement for all Baseframe apps.

We've avoided caching in any of the HasGeek apps so far, but it's starting to become a requirement as our sites are now running multiple database queries to render a single page (for example, a hacknight event page, which pulls together projects and participants).

Caching as a requirement in Baseframe itself has been precipitated as a result of the configurable networkbar introduced recently -- to make decent performance, we only load the list of links once when the app is started, but this means that when the list changes, all apps have to be restarted (via a uwsgi restart) -- and this includes hascore, the app that serves this list. This results in a race condition that requires two rounds of restarting to ensure hascore is running when the others hit it for data.

I'm looking at how to introduce this change while maintaining full backward compatibility.

Best,
Kiran

-- 
Kiran Jonnalagadda

Kiran Jonnalagadda

unread,
Jun 2, 2013, 4:47:35 PM6/2/13
to hasgee...@googlegroups.com
Networkbar caching is now in production. That was easy. http://git.io/JUzaUw

Kiran

-- 
Kiran Jonnalagadda

Reply all
Reply to author
Forward
0 new messages