Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.14898109436035
[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.054741144180298
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Garner%2C+NC%2C+US&radius=10&search_limit=15
[execution_time] => 6.0172779560089
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Garner' AND merch_region='NC'
[execution_time] => 0.009749174118042
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/NC/cities/Garner/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=0744262e06c53da83d83c3ab40dc587d&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Garner'
AND region = 'NC'
AND country = 'United States'
AND expires > '1368961263'
[execution_time] => 0.0002892017364502
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Garner',
'NC',
'United States',
'1368964863',
'{\"links\":{\"last\":\"http://hyperlocal-api.outside.in/v1.1/states/NC/cities/Garner/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=0744262e06c53da83d83c3ab40dc587d\",\"first\":\"http://hyperlocal-api.outside.in/v1.1/states/NC/cities/Garner/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=0744262e06c53da83d83c3ab40dc587d\"},\"total\":0,\"location\":{\"display_name\":\"Garner, NC\",\"state\":\"North Carolina\",\"url\":\"http://outside.in/garner-nc?utm_content=Garner_NC&utm_source=API_OutsideIn_0&utm_medium=API&utm_campaign=APILinkback\",\"lng\":-78.62428283691406,\"lat\":35.69486618041992,\"uuid\":\"4050c4e5-c0e5-423c-bed3-edf10a41becd\",\"city\":\"Garner\",\"category\":{\"name\":\"city\",\"display_name\":\"City / Town / Village\"},\"state_abbrev\":\"NC\",\"url_name\":\"garner-nc\",\"hot_for_requested\":false},\"stories\":[]}'
)
ON DUPLICATE KEY UPDATE expires = '1368964863', data = '{\"links\":{\"last\":\"http://hyperlocal-api.outside.in/v1.1/states/NC/cities/Garner/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=0744262e06c53da83d83c3ab40dc587d\",\"first\":\"http://hyperlocal-api.outside.in/v1.1/states/NC/cities/Garner/stories?no-vertical=obituaries&page=1&dev_key=6at3bn2z23e33eu92utrq6pt&sig=0744262e06c53da83d83c3ab40dc587d\"},\"total\":0,\"location\":{\"display_name\":\"Garner, NC\",\"state\":\"North Carolina\",\"url\":\"http://outside.in/garner-nc?utm_content=Garner_NC&utm_source=API_OutsideIn_0&utm_medium=API&utm_campaign=APILinkback\",\"lng\":-78.62428283691406,\"lat\":35.69486618041992,\"uuid\":\"4050c4e5-c0e5-423c-bed3-edf10a41becd\",\"city\":\"Garner\",\"category\":{\"name\":\"city\",\"display_name\":\"City / Town / Village\"},\"state_abbrev\":\"NC\",\"url_name\":\"garner-nc\",\"hot_for_requested\":false},\"stories\":[]}'
[execution_time] => 0.083339214324951
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Garner'
AND region = 'NC'
AND country = 'United States'
AND expires > '1368961263'
[execution_time] => 0.00055503845214844
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Garner',
'NC',
'United States',
'1368964863',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"100\", \"observation_time\": \"11:01 AM\", \"precipMM\": \"0.2\", \"pressure\": \"1021\", \"temp_C\": \"19\", \"temp_F\": \"66\", \"visibility\": \"8\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"0\", \"windspeedKmph\": \"0\", \"windspeedMiles\": \"0\" } ], \"request\": [ {\"query\": \"Garner, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-19\", \"precipMM\": \"17.6\", \"tempMaxC\": \"27\", \"tempMaxF\": \"81\", \"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\": \"190\", \"winddirection\": \"S\", \"windspeedKmph\": \"21\", \"windspeedMiles\": \"13\" }, {\"date\": \"2013-05-20\", \"precipMM\": \"8.0\", \"tempMaxC\": \"26\", \"tempMaxF\": \"79\", \"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\": \"SW\", \"winddirDegree\": \"220\", \"winddirection\": \"SW\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" }, {\"date\": \"2013-05-21\", \"precipMM\": \"3.0\", \"tempMaxC\": \"28\", \"tempMaxF\": \"82\", \"tempMinC\": \"19\", \"tempMinF\": \"65\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"WSW\", \"winddirDegree\": \"240\", \"winddirection\": \"WSW\", \"windspeedKmph\": \"19\", \"windspeedMiles\": \"12\" }, {\"date\": \"2013-05-22\", \"precipMM\": \"0.0\", \"tempMaxC\": \"28\", \"tempMaxF\": \"82\", \"tempMinC\": \"19\", \"tempMinF\": \"66\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSW\", \"winddirDegree\": \"200\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"11\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1368964863', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"100\", \"humidity\": \"100\", \"observation_time\": \"11:01 AM\", \"precipMM\": \"0.2\", \"pressure\": \"1021\", \"temp_C\": \"19\", \"temp_F\": \"66\", \"visibility\": \"8\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"N\", \"winddirDegree\": \"0\", \"windspeedKmph\": \"0\", \"windspeedMiles\": \"0\" } ], \"request\": [ {\"query\": \"Garner, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-19\", \"precipMM\": \"17.6\", \"tempMaxC\": \"27\", \"tempMaxF\": \"81\", \"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\": \"190\", \"winddirection\": \"S\", \"windspeedKmph\": \"21\", \"windspeedMiles\": \"13\" }, {\"date\": \"2013-05-20\", \"precipMM\": \"8.0\", \"tempMaxC\": \"26\", \"tempMaxF\": \"79\", \"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\": \"SW\", \"winddirDegree\": \"220\", \"winddirection\": \"SW\", \"windspeedKmph\": \"22\", \"windspeedMiles\": \"14\" }, {\"date\": \"2013-05-21\", \"precipMM\": \"3.0\", \"tempMaxC\": \"28\", \"tempMaxF\": \"82\", \"tempMinC\": \"19\", \"tempMinF\": \"65\", \"weatherCode\": \"353\", \"weatherDesc\": [ {\"value\": \"Light rain shower\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0009_light_rain_showers.png\" } ], \"winddir16Point\": \"WSW\", \"winddirDegree\": \"240\", \"winddirection\": \"WSW\", \"windspeedKmph\": \"19\", \"windspeedMiles\": \"12\" }, {\"date\": \"2013-05-22\", \"precipMM\": \"0.0\", \"tempMaxC\": \"28\", \"tempMaxF\": \"82\", \"tempMinC\": \"19\", \"tempMinF\": \"66\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSW\", \"winddirDegree\": \"200\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"17\", \"windspeedMiles\": \"11\" } ] }}'
[execution_time] => 0.090981960296631
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(35.705608) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-78.621391) ) + sin( radians(35.705608) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.018181085586548
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338711' ORDER BY item_per_off
[execution_time] => 0.009552001953125
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '131816' ORDER BY item_per_off
[execution_time] => 0.0095980167388916
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '209076' ORDER BY item_per_off
[execution_time] => 0.007504940032959
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '296547' ORDER BY item_per_off
[execution_time] => 0.011193990707397
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '336013' ORDER BY item_per_off
[execution_time] => 0.011013984680176
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '165750' ORDER BY item_per_off
[execution_time] => 0.0067329406738281
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '335648' ORDER BY item_per_off
[execution_time] => 0.010143995285034
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '123521' ORDER BY item_per_off
[execution_time] => 0.0091328620910645
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '124006' ORDER BY item_per_off
[execution_time] => 0.011466026306152
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '333928' ORDER BY item_per_off
[execution_time] => 0.015017032623291
)
)
)
)