aces / cbrain

CBRAIN is a flexible Ruby on Rails framework for accessing and processing of large data on high-performance computing infrastructures.
GNU General Public License v3.0
71 stars 42 forks source link

Use Rails caching to cache snippets of HTML for some heavy selection boxes #97

Closed prioux closed 9 years ago

prioux commented 9 years ago

We have helpers to create fancy selection boxes (see in select_box_helpers.rb). Some of the HTML returned can be quite long when CBRAIN is used by an admin on a service with hundreds of users and groups. Since the set of users and group don't change all that often, it would be convenient to cache the HTML of those helpers and generate them only when there has been a modification to the underlying table (check with the latest updated_at attribute).

prioux commented 9 years ago

The performances problems was tracked to something else entirely, so I'm closing this issue and opening a new one. No caching necessary.