Exemple #1
0
 /**
  * Wrapper for record insertion to update related caches
  */
 function insert()
 {
     $result = parent::insert();
     if ($result) {
         self::blow('reply:stream:%d', $this->profile_id);
     }
     return $result;
 }
Exemple #2
0
 function insert()
 {
     $result = parent::insert();
     if ($result) {
         Config::_blowSettingsCache();
     }
     return $result;
 }
Exemple #3
0
 /**
  * Save this keypair into the database.
  *
  * Overloads default insert behavior to encode the live key objects
  * as a flat string for storage.
  *
  * @return mixed
  */
 function insert()
 {
     $this->keypair = $this->toString();
     return parent::insert();
 }
 function insert()
 {
     $result = parent::insert();
     if ($result) {
         self::blow('profile_list:tagged_count:%d:%s', $this->tagger, $this->tag);
     }
     return $result;
 }
Exemple #5
0
 /**
  * Insert wrapper; transparently set the hash key from topic and callback columns.
  * @return mixed success
  */
 function insert()
 {
     $this->hashkey = self::hashkey($this->topic, $this->callback);
     $this->created = common_sql_now();
     $this->modified = common_sql_now();
     return parent::insert();
 }
Exemple #6
0
 function insert()
 {
     $result = parent::insert();
     if ($result) {
         // Profile::hasRepeated() abuses pkeyGet(), so we
         // have to clear manually
         if (!empty($this->repeat_of)) {
             $c = self::memcache();
             if (!empty($c)) {
                 $ck = self::multicacheKey('Notice', array('profile_id' => $this->profile_id, 'repeat_of' => $this->repeat_of));
                 $c->delete($ck);
             }
         }
     }
     return $result;
 }
 function insert()
 {
     $result = parent::insert();
     if ($result) {
         self::blow('profile:lists:%d', $this->tagger);
     }
     return $result;
 }
 function insert()
 {
     $result = parent::insert();
     if ($result) {
         self::blow('profile_list:subscriber_count:%d', $this->profile_tag_id);
     }
     return $result;
 }