Array
(
[0] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=local_locations
[execution_time] => 0.14036703109741
[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.051405906677246
)
)
)
[1] => Array
(
[api_query] => http://api.salecamel.com?api_key=123456789&do_get=get_local&location=Garden%2C+Grove%2C+CA&radius=10&search_limit=15
[execution_time] => 9.309662103653
[from_api] => Array
(
[0] => Array
(
[mysql_query] => SELECT merch_latitude, merch_longitude
FROM merchants_local
WHERE merch_locality='Garden' AND merch_region='Grove'
[execution_time] => 0.011445999145508
)
[1] => Array
(
[news_api_call] => http://hyperlocal-api.outside.in/v1.1/states/CA/cities/Garden%20Grove/stories?dev_key=6at3bn2z23e33eu92utrq6pt&sig=9c3ada0e5c8eca4f40fe41baaf0b5601&no-vertical=obituaries
)
[2] => Array
(
[mysql_query] => SELECT data FROM cache_news
WHERE locality = 'Garden Grove'
AND region = 'CA'
AND country = 'United States'
AND expires > '1369477012'
[execution_time] => 0.00046515464782715
)
[3] => Array
(
[mysql_query] => INSERT INTO cache_news
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Garden Grove',
'CA',
'United States',
'1369480612',
'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
)
ON DUPLICATE KEY UPDATE expires = '1369480612', data = 'DNS Made Easy: Your DNS has expired
DNS service for this domain has expired with DNS Made Easy
'
[execution_time] => 0.1157078742981
)
[4] => Array
(
[mysql_query] => SELECT data FROM cache_weather
WHERE locality = 'Garden Grove'
AND region = 'CA'
AND country = 'United States'
AND expires > '1369477012'
[execution_time] => 0.00055098533630371
)
[5] => Array
(
[mysql_query] => INSERT INTO cache_weather
(`locality`, `region`, `country`, `expires`, `data`)
VALUES
(
'Garden Grove',
'CA',
'United States',
'1369480612',
'{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"50\", \"humidity\": \"77\", \"observation_time\": \"10:16 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1015\", \"temp_C\": \"14\", \"temp_F\": \"57\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"ESE\", \"winddirDegree\": \"120\", \"windspeedKmph\": \"9\", \"windspeedMiles\": \"6\" } ], \"request\": [ {\"query\": \"Garden Grove, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"70\", \"tempMinC\": \"16\", \"tempMinF\": \"60\", \"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\": \"15\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"22\", \"tempMaxF\": \"71\", \"tempMinC\": \"16\", \"tempMinF\": \"61\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"SSW\", \"winddirDegree\": \"210\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"0.0\", \"tempMaxC\": \"23\", \"tempMaxF\": \"73\", \"tempMinC\": \"15\", \"tempMinF\": \"58\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"220\", \"winddirection\": \"SW\", \"windspeedKmph\": \"24\", \"windspeedMiles\": \"15\" }, {\"date\": \"2013-05-28\", \"precipMM\": \"0.0\", \"tempMaxC\": \"24\", \"tempMaxF\": \"74\", \"tempMinC\": \"14\", \"tempMinF\": \"58\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSW\", \"winddirDegree\": \"205\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"24\", \"windspeedMiles\": \"15\" } ] }}'
)
ON DUPLICATE KEY UPDATE expires = '1369480612', data = '{ \"data\": { \"current_condition\": [ {\"cloudcover\": \"50\", \"humidity\": \"77\", \"observation_time\": \"10:16 AM\", \"precipMM\": \"0.0\", \"pressure\": \"1015\", \"temp_C\": \"14\", \"temp_F\": \"57\", \"visibility\": \"16\", \"weatherCode\": \"116\", \"weatherDesc\": [ {\"value\": \"Partly Cloudy\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"ESE\", \"winddirDegree\": \"120\", \"windspeedKmph\": \"9\", \"windspeedMiles\": \"6\" } ], \"request\": [ {\"query\": \"Garden Grove, United States Of America\", \"type\": \"City\" } ], \"weather\": [ {\"date\": \"2013-05-25\", \"precipMM\": \"0.0\", \"tempMaxC\": \"21\", \"tempMaxF\": \"70\", \"tempMinC\": \"16\", \"tempMinF\": \"60\", \"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\": \"15\", \"windspeedMiles\": \"9\" }, {\"date\": \"2013-05-26\", \"precipMM\": \"0.0\", \"tempMaxC\": \"22\", \"tempMaxF\": \"71\", \"tempMinC\": \"16\", \"tempMinF\": \"61\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"SSW\", \"winddirDegree\": \"210\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"13\", \"windspeedMiles\": \"8\" }, {\"date\": \"2013-05-27\", \"precipMM\": \"0.0\", \"tempMaxC\": \"23\", \"tempMaxF\": \"73\", \"tempMinC\": \"15\", \"tempMinF\": \"58\", \"weatherCode\": \"122\", \"weatherDesc\": [ {\"value\": \"Overcast\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0004_black_low_cloud.png\" } ], \"winddir16Point\": \"SW\", \"winddirDegree\": \"220\", \"winddirection\": \"SW\", \"windspeedKmph\": \"24\", \"windspeedMiles\": \"15\" }, {\"date\": \"2013-05-28\", \"precipMM\": \"0.0\", \"tempMaxC\": \"24\", \"tempMaxF\": \"74\", \"tempMinC\": \"14\", \"tempMinF\": \"58\", \"weatherCode\": \"113\", \"weatherDesc\": [ {\"value\": \"Sunny\" } ], \"weatherIconUrl\": [ {\"value\": \"http:\\/\\/www.worldweatheronline.com\\/images\\/wsymbols01_png_64\\/wsymbol_0001_sunny.png\" } ], \"winddir16Point\": \"SSW\", \"winddirDegree\": \"205\", \"winddirection\": \"SSW\", \"windspeedKmph\": \"24\", \"windspeedMiles\": \"15\" } ] }}'
[execution_time] => 0.060633182525635
)
[6] => Array
(
[mysql_query] => SELECT *, ( 3959 * acos( cos( radians(33.77607) ) * cos( radians( merch_latitude ) ) * cos( radians( merch_longitude ) - radians(-117.936157) ) + sin( radians(33.77607) ) * sin( radians( merch_latitude ) ) ) ) AS distance
FROM merchants_local
HAVING distance < 10
ORDER BY distance
[execution_time] => 0.020647048950195
)
[7] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '161213' ORDER BY item_per_off
[execution_time] => 0.0073940753936768
)
[8] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '259895' ORDER BY item_per_off
[execution_time] => 0.012097120285034
)
[9] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '315181' ORDER BY item_per_off
[execution_time] => 0.012627124786377
)
[10] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '161948' ORDER BY item_per_off
[execution_time] => 0.0096428394317627
)
[11] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '159830' ORDER BY item_per_off
[execution_time] => 0.011864900588989
)
[12] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '161280' ORDER BY item_per_off
[execution_time] => 0.012394905090332
)
[13] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '201626' ORDER BY item_per_off
[execution_time] => 0.013397932052612
)
[14] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '254221' ORDER BY item_per_off
[execution_time] => 0.013030052185059
)
[15] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '160991' ORDER BY item_per_off
[execution_time] => 0.012346029281616
)
[16] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '125895' ORDER BY item_per_off
[execution_time] => 0.012277126312256
)
[17] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '315034' ORDER BY item_per_off
[execution_time] => 0.012995958328247
)
[18] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '338604' ORDER BY item_per_off
[execution_time] => 0.011616945266724
)
[19] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '135286' ORDER BY item_per_off
[execution_time] => 0.0126051902771
)
[20] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '318863' ORDER BY item_per_off
[execution_time] => 0.014877080917358
)
[21] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '156497' ORDER BY item_per_off
[execution_time] => 0.0074501037597656
)
[22] => Array
(
[mysql_query] => SELECT * FROM items_local WHERE merch_id = '275526' ORDER BY item_per_off
[execution_time] => 0.012640953063965
)
)
)
)