original_string: public function cache($qubaids) {
          foreach ($this->get_all_slots() as $slot) {
              $this->for_slot($slot)->cache($qubaids);
          }
  
          foreach ($this->get_all_subq_ids() as $subqid) {
              $this->for_subq($subqid)->cache($qubaids);
          }
      }
code: public function cache($qubaids) {
          foreach ($this->get_all_slots() as $slot) {
              $this->for_slot($slot)->cache($qubaids);
          }
  
          foreach ($this->get_all_subq_ids() as $subqid) {
              $this->for_subq($subqid)->cache($qubaids);
          }
      }
code_tokens: public function cache ( $ qubaids ) { foreach ( $ this -> get_all_slots ( ) as $ slot ) { $ this -> for_slot ( $ slot ) -> cache ( $ qubaids ) ; } foreach ( $ this -> get_all_subq_ids ( ) as $ subqid ) { $ this -> for_subq ( $ subqid ) -> cache ( $ qubaids ) ; } }
docstring: Save stats to db.
  
  @param \qubaid_condition $qubaids Which question usages are we caching the stats of?
docstring_tokens: Save stats to db .