# File lib/cgikit/session.rb, line 257
    def save_page( component, permanently = false )
      if permanently then
        caches = @permanent_caches
        size = @application.permanent_page_cache_size
      else
        caches = @caches
        size = @application.page_cache_size
      end
      component.add_all_components(self, permanently)
      if component.context then
        cid = component.context.context_id
        @context_ids[cid] = component_id(component)
      end
      _remove_old_cache(caches, size)
    end