optimizeDataFile()
Optimize a DeviceAtlas JSON data file and populate the cache. The API will use the latest optimized cached files.
optimizeDataFile(mixed $jsonDataFilePath[, mixed $tempDir = null ][, mixed $force = false ]) : mixed
Note that when using the API (configured to use optimized data file), when a new data file is passed to the API "loadDataFromFile()" method if the file is not optimized it will automatically be optimized. However this will cause a small lag for the request which the optimization is done at. The bellow function may be used instead.
Parameters
- $jsonDataFilePath : mixed
- $tempDir : mixed = null
- $force : mixed = false