Add caching to widgets.

#6043 
What does it mean ?