GaretJax / phpbrowscap

Standalone replacement for php's native get_browser() function
MIT License
429 stars 69 forks source link

Fixed the situation where the current local ini is newer than the distributed one + performance increase #71

Open josja opened 9 years ago

josja commented 9 years ago

When checking for updated ini, the current version touches local ini's that are newer than the remote ini, making it even newer, fixed this never ending condition where update doesn't seem to be needed due to local being newer. In this fork the local ini will get stale eventually. (I pull projects from remote repo's and some of them have an old browscap.ini inside but get the current date as creation date).

Also the cache doesn't have to be rewritten always when checking for update. fixed in this fork.