Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.13645005226135
[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.051148891448975
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Oley%2C+PA%2C+US&radius=10&search_limit=15
[execution_time] => 4.7458369731903
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Oley' AND merch_region='PA'
[execution_time] => 0.0092699527740479
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/PA/cities/Oley/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=2e830dbe32cf7755099de3ecb21e4051&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Oley'
AND region = 'PA'
AND country = 'United States'
AND expires > '1369136506'
[execution_time] => 0.00043916702270508
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Oley',
'PA',
'United States',
'1369140106',
''
)
ON DUPLICATE KEY UPDATE expires = '1369140106', data = ''
[execution_time] => 0.056645154953003
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Oley'
AND region = 'PA'
AND country = 'United States'
AND expires > '1369136506'
[execution_time] => 0.00048708915710449
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Oley',
'PA',
'United States',
'1369140106',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"88\", \"observation_time\": \"11:41 AM\", \"precipMM\": \"0.1\", \"pressure\": \"1015\", \"temp_C\": \"21\", \"temp_F\": \"70\", \"visibility\": \"5\", \"weatherCode\": \"143\", \"weatherDesc\": [ {\"value\": \"Mist\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0006_mist.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"190\", \"windspeedKmph\": \"6\", \"windspeedMiles\": \"4\" } ], \"request\": [ {\"query\": \"Oley, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-21\", \"precipMM\": \"0.2\", \"tempMaxC\": \"28\", \"tempMaxF\": \"82\", \"tempMinC\": \"20\", \"tempMinF\": \"68\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"220\", \"winddirection\": \"SW\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" }, {\"date\": \"2013-05-22\", \"precipMM\": \"6.0\", \"tempMaxC\": \"29\", \"tempMaxF\": \"84\", \"tempMinC\": \"20\", \"tempMinF\": \"68\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"230\", \"winddirection\": \"SW\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" }, {\"date\": \"2013-05-23\", \"precipMM\": \"6.8\", \"tempMaxC\": \"26\", \"tempMaxF\": \"78\", \"tempMinC\": \"15\", \"tempMinF\": \"59\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"SSW\", \"winddirDegree\": \"210\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"11\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"8.1\", \"tempMaxC\": \"21\", \"tempMaxF\": \"70\", \"tempMinC\": \"6\", \"tempMinF\": \"42\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"11\", \"winddirection\": \"N\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369140106', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"88\", \"observation_time\": \"11:41 AM\", \"precipMM\": \"0.1\", \"pressure\": \"1015\", \"temp_C\": \"21\", \"temp_F\": \"70\", \"visibility\": \"5\", \"weatherCode\": \"143\", \"weatherDesc\": [ {\"value\": \"Mist\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0006_mist.png\" } ], \"winddir16Point\": \"S\", \"winddirDegree\": \"190\", \"windspeedKmph\": \"6\", \"windspeedMiles\": \"4\" } ], \"request\": [ {\"query\": \"Oley, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-21\", \"precipMM\": \"0.2\", \"tempMaxC\": \"28\", \"tempMaxF\": \"82\", \"tempMinC\": \"20\", \"tempMinF\": \"68\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"220\", \"winddirection\": \"SW\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" }, {\"date\": \"2013-05-22\", \"precipMM\": \"6.0\", \"tempMaxC\": \"29\", \"tempMaxF\": \"84\", \"tempMinC\": \"20\", \"tempMinF\": \"68\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"230\", \"winddirection\": \"SW\", \"windspeedKmph\": \"11\", \"windspeedMiles\": \"7\" }, {\"date\": \"2013-05-23\", \"precipMM\": \"6.8\", \"tempMaxC\": \"26\", \"tempMaxF\": \"78\", \"tempMinC\": \"15\", \"tempMinF\": \"59\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"SSW\", \"winddirDegree\": \"210\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"11\" }, {\"date\": \"2013-05-24\", \"precipMM\": \"8.1\", \"tempMaxC\": \"21\", \"tempMaxF\": \"70\", \"tempMinC\": \"6\", \"tempMinF\": \"42\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"11\", \"winddirection\": \"N\", \"windspeedKmph\": \"15\", \"windspeedMiles\": \"9\" } ] }}'
[execution_time] => 0.037107944488525
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(40.39379) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-75.8013) ) + sin( radians(40.39379) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.014040946960449
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '325802' ORDER BY item_per_off
[execution_time] => 0.0073020458221436
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '122619' ORDER BY item_per_off
[execution_time] => 0.011742115020752
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '129105' ORDER BY item_per_off
[execution_time] => 0.0094501972198486
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '133379' ORDER BY item_per_off
[execution_time] => 0.011736869812012
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '334067' ORDER BY item_per_off
[execution_time] => 0.011191129684448
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '128467' ORDER BY item_per_off
[execution_time] => 0.011453151702881
)
)
)
)