Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.14575290679932
[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.058104991912842
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=San%2C+Jose%2C+CA&radius=10&search_limit=15
[execution_time] => 8.3475430011749
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='San' AND merch_region='Jose'
[execution_time] => 0.0067088603973389
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/CA/cities/San%20Jose/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=91a0f26727d8d066c933f3d2fa571952&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'San Jose'
AND region = 'CA'
AND country = 'United States'
AND expires > '1369526020'
[execution_time] => 0.00027298927307129
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'San Jose',
'CA',
'United States',
'1369529620',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369529620', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.062879085540771
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'San Jose'
AND region = 'CA'
AND country = 'United States'
AND expires > '1369526020'
[execution_time] => 0.00049591064453125
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'San Jose',
'CA',
'United States',
'1369529620',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"0\", \"humidity\": \"49\", \"observation_time\": \"11:53 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1017\", \"temp_C\": \"18\", \"temp_F\": \"64\", \"visibility\": \"16\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"320\", \"windspeedKmph\": \"26\", \"windspeedMiles\": \"16\" } ], \"request\": [ {\"query\": \"San Jose, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"12\", \"tempMinF\": \"54\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"W\", \"winddirDegree\": \"280\", \"winddirection\": \"W\", \"windspeedKmph\": \"31\", \"windspeedMiles\": \"19\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"1.0\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"13\", \"tempMinF\": \"56\", \"weatherCode\": \"266\", \"weatherDesc\": [ {\"value\": \"Light drizzle\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0017_cloudy_with_light_rain.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"300\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"28\", \"windspeedMiles\": \"17\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"0.4\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"14\", \"tempMinF\": \"57\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"300\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"30\", \"windspeedMiles\": \"18\" }, {\"date\": \"2013-05-28\", \"precipMM\": \"1.7\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"8\", \"tempMinF\": \"46\", \"weatherCode\": \"119\", \"weatherDesc\": [ {\"value\": \"Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0003_white_cloud.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"312\", \"winddirection\": \"NW\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369529620', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"0\", \"humidity\": \"49\", \"observation_time\": \"11:53 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1017\", \"temp_C\": \"18\", \"temp_F\": \"64\", \"visibility\": \"16\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"320\", \"windspeedKmph\": \"26\", \"windspeedMiles\": \"16\" } ], \"request\": [ {\"query\": \"San Jose, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"12\", \"tempMinF\": \"54\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"W\", \"winddirDegree\": \"280\", \"winddirection\": \"W\", \"windspeedKmph\": \"31\", \"windspeedMiles\": \"19\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"1.0\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"13\", \"tempMinF\": \"56\", \"weatherCode\": \"266\", \"weatherDesc\": [ {\"value\": \"Light drizzle\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0017_cloudy_with_light_rain.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"300\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"28\", \"windspeedMiles\": \"17\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"0.4\", \"tempMaxC\": \"20\", \"tempMaxF\": \"68\", \"tempMinC\": \"14\", \"tempMinF\": \"57\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"WNW\", \"winddirDegree\": \"300\", \"winddirection\": \"WNW\", \"windspeedKmph\": \"30\", \"windspeedMiles\": \"18\" }, {\"date\": \"2013-05-28\", \"precipMM\": \"1.7\", \"tempMaxC\": \"21\", \"tempMaxF\": \"69\", \"tempMinC\": \"8\", \"tempMinF\": \"46\", \"weatherCode\": \"119\", \"weatherDesc\": [ {\"value\": \"Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0003_white_cloud.png\" } ], \"winddir16Point\": \"NW\", \"winddirDegree\": \"312\", \"winddirection\": \"NW\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" } ] }}'
[execution_time] => 0.053210020065308
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(37.338581) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-121.885567) ) + sin( radians(37.338581) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.018501043319702
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '259574' ORDER BY item_per_off
[execution_time] => 0.008591890335083
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338994' ORDER BY item_per_off
[execution_time] => 0.011399984359741
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336537' ORDER BY item_per_off
[execution_time] => 0.012886047363281
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '259972' ORDER BY item_per_off
[execution_time] => 0.012617826461792
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '188287' ORDER BY item_per_off
[execution_time] => 0.0095100402832031
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336681' ORDER BY item_per_off
[execution_time] => 0.0090410709381104
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '164653' ORDER BY item_per_off
[execution_time] => 0.012744188308716
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '313971' ORDER BY item_per_off
[execution_time] => 0.012595176696777
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338474' ORDER BY item_per_off
[execution_time] => 0.011575937271118
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '335597' ORDER BY item_per_off
[execution_time] => 0.0075919628143311
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '260170' ORDER BY item_per_off
[execution_time] => 0.011470079421997
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334126' ORDER BY item_per_off
[execution_time] => 0.0081660747528076
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '335616' ORDER BY item_per_off
[execution_time] => 0.011657953262329
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '160921' ORDER BY item_per_off
[execution_time] => 0.011310815811157
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '164388' ORDER BY item_per_off
[execution_time] => 0.012525081634521
)
[22] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '258110' ORDER BY item_per_off
[execution_time] => 0.012665033340454
)
)
)
)