We are using get_browser()
in PHP using php_browscap.ini
but performance is horrible. We pass 100 or so user-agents into get_browser()
per page and it takes over 30 seconds to render the page. We need a performant solution, without storing the actual get_browser()
results persistently (we only want to store user agents).
We already use memcached, is there a way we can alter get_browser()
to cache results, or load the entire php_browscap.ini
into memcached.