Example #1
0
 /**
  * Removes property cache
  * @author Howard R <*****@*****.**>
  * @static
  * @param int $property_id
  * @return boolean
  */
 public static function clear_property_cache($property_id)
 {
     /** First Validation **/
     if (!trim($property_id)) {
         return false;
     }
     _wpl_import('libraries.settings');
     $q = " `location_text`='', `rendered`=''";
     if (wpl_global::check_multilingual_status()) {
         $q = wpl_settings::get_multilingual_query(array('location_text', 'rendered'));
     }
     $query = "UPDATE `#__wpl_properties` SET " . $q . " WHERE `id`='{$property_id}'";
     return wpl_db::q($query, 'UPDATE');
 }