Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.1395058631897
[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.051600933074951
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Merriam%2C+KS%2C+US&radius=10&search_limit=15
[execution_time] => 8.8741919994354
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Merriam' AND merch_region='KS'
[execution_time] => 0.0093400478363037
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/KS/cities/Merriam/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=a20cda27aad285d0523495b206c18ad2&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Merriam'
AND region = 'KS'
AND country = 'United States'
AND expires > '1369516369'
[execution_time] => 0.00055885314941406
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Merriam',
'KS',
'United States',
'1369519969',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369519969', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.036226987838745
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Merriam'
AND region = 'KS'
AND country = 'United States'
AND expires > '1369516369'
[execution_time] => 0.00040197372436523
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Merriam',
'KS',
'United States',
'1369519969',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"75\", \"humidity\": \"58\", \"observation_time\": \"09:12 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1018\", \"temp_C\": \"27\", \"temp_F\": \"81\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"180\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" } ], \"request\": [ {\"query\": \"Merriam, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"1.2\", \"tempMaxC\": \"24\", \"tempMaxF\": \"75\", \"tempMinC\": \"18\", \"tempMinF\": \"65\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"180\", \"winddirection\": \"S\", \"windspeedKmph\": \"26\", \"windspeedMiles\": \"16\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"4.3\", \"tempMaxC\": \"26\", \"tempMaxF\": \"78\", \"tempMinC\": \"19\", \"tempMinF\": \"66\", \"weatherCode\": \"356\", \"weatherDesc\": [ {\"value\": \"Moderate or heavy rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0010_heavy_rain_showers.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"180\", \"winddirection\": \"S\", \"windspeedKmph\": \"31\", \"windspeedMiles\": \"19\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"8.5\", \"tempMaxC\": \"26\", \"tempMaxF\": \"78\", \"tempMinC\": \"19\", \"tempMinF\": \"66\", \"weatherCode\": \"386\", \"weatherDesc\": [ {\"value\": \"Patchy light rain in area with thunder\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0016_thundery_showers.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"170\", \"winddirection\": \"S\", \"windspeedKmph\": \"31\", \"windspeedMiles\": \"19\" }, {\"date\": \"2013-05-28\", \"precipMM\": \"5.2\", \"tempMaxC\": \"28\", \"tempMaxF\": \"82\", \"tempMinC\": \"20\", \"tempMinF\": \"68\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"190\", \"winddirection\": \"S\", \"windspeedKmph\": \"37\", \"windspeedMiles\": \"23\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369519969', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"75\", \"humidity\": \"58\", \"observation_time\": \"09:12 PM\", \"precipMM\": \"0.0\", \"pressure\": \"1018\", \"temp_C\": \"27\", \"temp_F\": \"81\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0002_sunny_intervals.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"180\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" } ], \"request\": [ {\"query\": \"Merriam, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"1.2\", \"tempMaxC\": \"24\", \"tempMaxF\": \"75\", \"tempMinC\": \"18\", \"tempMinF\": \"65\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"180\", \"winddirection\": \"S\", \"windspeedKmph\": \"26\", \"windspeedMiles\": \"16\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"4.3\", \"tempMaxC\": \"26\", \"tempMaxF\": \"78\", \"tempMinC\": \"19\", \"tempMinF\": \"66\", \"weatherCode\": \"356\", \"weatherDesc\": [ {\"value\": \"Moderate or heavy rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0010_heavy_rain_showers.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"180\", \"winddirection\": \"S\", \"windspeedKmph\": \"31\", \"windspeedMiles\": \"19\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"8.5\", \"tempMaxC\": \"26\", \"tempMaxF\": \"78\", \"tempMinC\": \"19\", \"tempMinF\": \"66\", \"weatherCode\": \"386\", \"weatherDesc\": [ {\"value\": \"Patchy light rain in area with thunder\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0016_thundery_showers.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"170\", \"winddirection\": \"S\", \"windspeedKmph\": \"31\", \"windspeedMiles\": \"19\" }, {\"date\": \"2013-05-28\", \"precipMM\": \"5.2\", \"tempMaxC\": \"28\", \"tempMaxF\": \"82\", \"tempMinC\": \"20\", \"tempMinF\": \"68\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"190\", \"winddirection\": \"S\", \"windspeedKmph\": \"37\", \"windspeedMiles\": \"23\" } ] }}'
[execution_time] => 0.061834096908569
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(39.015541) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-94.689583) ) + sin( radians(39.015541) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.019620895385742
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '325882' ORDER BY item_per_off
[execution_time] => 0.011018991470337
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '335611' ORDER BY item_per_off
[execution_time] => 0.01625394821167
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '164474' ORDER BY item_per_off
[execution_time] => 0.0097939968109131
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '144840' ORDER BY item_per_off
[execution_time] => 0.013424873352051
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '189249' ORDER BY item_per_off
[execution_time] => 0.012505054473877
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '267668' ORDER BY item_per_off
[execution_time] => 0.0087809562683105
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '164334' ORDER BY item_per_off
[execution_time] => 0.013509035110474
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '307724' ORDER BY item_per_off
[execution_time] => 0.012801170349121
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '257417' ORDER BY item_per_off
[execution_time] => 0.012797117233276
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '160215' ORDER BY item_per_off
[execution_time] => 0.013136148452759
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '168479' ORDER BY item_per_off
[execution_time] => 0.012537002563477
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '164261' ORDER BY item_per_off
[execution_time] => 0.012709856033325
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '260950' ORDER BY item_per_off
[execution_time] => 0.011168956756592
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '163261' ORDER BY item_per_off
[execution_time] => 0.012910127639771
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338250' ORDER BY item_per_off
[execution_time] => 0.012274980545044
)
[22] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '146593' ORDER BY item_per_off
[execution_time] => 0.012284994125366
)
)
)
)