How does standard Wurfl cache - looking into the memory foot
Posted: Wed Apr 24, 2013 6:33 am
Just a quick one, can find anything online.
Im looking into using Wurfl for a UserAgent lookup system.
I need some insight into how it caches, now the file comes as one 15.9 meg XML and as I understand it when using APC to cache that it transforms that into an PHP array. However when using the ZIP it creates a directory structure using MD5 hashes as filenames for each individual device (stored as a serialized object).
Now when a request comes in does go away and traverse the cache directories for the right device and then cache that entry only or does it cache the whole filesystem and then lookup on that.
I think I have a pretty good idea of what it does as the alternative sounds counter productive but I'm just looking for confirmation.
Cheers
Im looking into using Wurfl for a UserAgent lookup system.
I need some insight into how it caches, now the file comes as one 15.9 meg XML and as I understand it when using APC to cache that it transforms that into an PHP array. However when using the ZIP it creates a directory structure using MD5 hashes as filenames for each individual device (stored as a serialized object).
Now when a request comes in does go away and traverse the cache directories for the right device and then cache that entry only or does it cache the whole filesystem and then lookup on that.
I think I have a pretty good idea of what it does as the alternative sounds counter productive but I'm just looking for confirmation.
Cheers