Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.16567707061768
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT DISTINCT merch_region, merch_locality, merch_country, merch_id FROM merchants_local ORDER BY merch_region, merch_locality
[execution_time] => 0.061836004257202
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Rohnert%2C+Park%2C+CA&radius=10&search_limit=15
[execution_time] => 1.1723289489746
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Rohnert' AND merch_region='Park'
[execution_time] => 0.010823011398315
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/CA/cities/Rohnert%20Park/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=b332bf4fd1d4193eccdba285b429b62e&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Rohnert Park'
AND region = 'CA'
AND country = 'United States'
AND expires > '1371530462'
[execution_time] => 0.00027990341186523
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Rohnert Park',
'CA',
'United States',
'1371534062',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1371534062', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.040227174758911
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Rohnert Park'
AND region = 'CA'
AND country = 'United States'
AND expires > '1371530462'
[execution_time] => 0.00050592422485352
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Rohnert Park',
'CA',
'United States',
'1371534062',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"88\", \"observation_time\": \"04:41 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1017\", \"temp_C\": \"14\", \"temp_F\": \"57\", \"visibility\": \"16\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"290\", \"windspeedKmph\": \"19\", \"windspeedMiles\": \"12\" } ], \"request\": [ {\"query\": \"Rohnert Park, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-06-17\", \"precipMM\": \"0.0\", \"tempMaxC\": \"24\", \"tempMaxF\": \"76\", \"tempMinC\": \"11\", \"tempMinF\": \"52\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"WSW\", \"winddirDegree\": \"240\", \"winddirection\": \"WSW\", \"windspeedKmph\": \"28\", \"windspeedMiles\": \"17\" }, {\"date\": \"2013-06-18\", \"precipMM\": \"0.0\", \"tempMaxC\": \"27\", \"tempMaxF\": \"81\", \"tempMinC\": \"10\", \"tempMinF\": \"50\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"293\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"33\", \"windspeedMiles\": \"21\" }, {\"date\": \"2013-06-19\", \"precipMM\": \"0.0\", \"tempMaxC\": \"24\", \"tempMaxF\": \"76\", \"tempMinC\": \"8\", \"tempMinF\": \"47\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"W\", \"winddirDegree\": \"260\", \"winddirection\": \"W\", \"windspeedKmph\": \"28\", \"windspeedMiles\": \"17\" }, {\"date\": \"2013-06-20\", \"precipMM\": \"0.0\", \"tempMaxC\": \"23\", \"tempMaxF\": \"74\", \"tempMinC\": \"8\", \"tempMinF\": \"47\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"310\", \"winddirection\": \"NW\", \"windspeedKmph\": \"21\", \"windspeedMiles\": \"13\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1371534062', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"88\", \"observation_time\": \"04:41 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1017\", \"temp_C\": \"14\", \"temp_F\": \"57\", \"visibility\": \"16\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"290\", \"windspeedKmph\": \"19\", \"windspeedMiles\": \"12\" } ], \"request\": [ {\"query\": \"Rohnert Park, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-06-17\", \"precipMM\": \"0.0\", \"tempMaxC\": \"24\", \"tempMaxF\": \"76\", \"tempMinC\": \"11\", \"tempMinF\": \"52\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"WSW\", \"winddirDegree\": \"240\", \"winddirection\": \"WSW\", \"windspeedKmph\": \"28\", \"windspeedMiles\": \"17\" }, {\"date\": \"2013-06-18\", \"precipMM\": \"0.0\", \"tempMaxC\": \"27\", \"tempMaxF\": \"81\", \"tempMinC\": \"10\", \"tempMinF\": \"50\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"293\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"33\", \"windspeedMiles\": \"21\" }, {\"date\": \"2013-06-19\", \"precipMM\": \"0.0\", \"tempMaxC\": \"24\", \"tempMaxF\": \"76\", \"tempMinC\": \"8\", \"tempMinF\": \"47\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"W\", \"winddirDegree\": \"260\", \"winddirection\": \"W\", \"windspeedKmph\": \"28\", \"windspeedMiles\": \"17\" }, {\"date\": \"2013-06-20\", \"precipMM\": \"0.0\", \"tempMaxC\": \"23\", \"tempMaxF\": \"74\", \"tempMinC\": \"8\", \"tempMinF\": \"47\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"310\", \"winddirection\": \"NW\", \"windspeedKmph\": \"21\", \"windspeedMiles\": \"13\" } ] }}'
[execution_time] => 0.057464122772217
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(38.343681) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-122.71212) ) + sin( radians(38.343681) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.023186206817627
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '262936' ORDER BY item_per_off
[execution_time] => 0.0093581676483154
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '133819' ORDER BY item_per_off
[execution_time] => 0.0088968276977539
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '260661' ORDER BY item_per_off
[execution_time] => 0.0089681148529053
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '143726' ORDER BY item_per_off
[execution_time] => 0.008875846862793
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334816' ORDER BY item_per_off
[execution_time] => 0.0089340209960938
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '135505' ORDER BY item_per_off
[execution_time] => 0.0089180469512939
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '162585' ORDER BY item_per_off
[execution_time] => 0.0089750289916992
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '145989' ORDER BY item_per_off
[execution_time] => 0.0088779926300049
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '158547' ORDER BY item_per_off
[execution_time] => 0.0088880062103271
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '328576' ORDER BY item_per_off
[execution_time] => 0.0089619159698486
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '135367' ORDER BY item_per_off
[execution_time] => 0.0089190006256104
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '160614' ORDER BY item_per_off
[execution_time] => 0.008897066116333
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '166803' ORDER BY item_per_off
[execution_time] => 0.0089259147644043
)
)
)
)