22. High-level API Reference
160
www.yoctopuce.com
YAPI
YAPI.SetHTTPCallbackCacheDir()
ySetHTTPCallbackCacheDir()
Enables the HTTP callback cache.
php
function ySetHTTPCallbackCacheDir(
$str_directory
)
When enabled, this cache reduces the quantity of data sent to the PHP script by 50% to 70%. To
enable this cache, the method
ySetHTTPCallbackCacheDir()
must be called before any call to
yRegisterHub()
. This method takes in parameter the path of the directory used for saving data
between each callback. This folder must exist and the PHP script needs to have write access to it. It is
recommended to use a folder that is not published on the Web server since the library will save some
data of Yoctopuce devices into this folder.
Note: This feature is supported by YoctoHub and VirtualHub since version 27750.
Parameters :
str_directory
the path of the folder that will be used as cache.
Returns :
nothing.
On failure, throws an exception.
Summary of Contents for Yocto-Display
Page 1: ...Yocto Display User Manual...
Page 2: ......
Page 40: ...34 www yoctopuce com...
Page 52: ...46 www yoctopuce com...
Page 84: ...78 www yoctopuce com...
Page 92: ...86 www yoctopuce com...
Page 130: ...124 www yoctopuce com...
Page 422: ...416 www yoctopuce com...