ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
  • Managing the internal cache directory of the application
  • Tips for using the internal cache directory of the application
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns the path of directory that will be used to store the data in cache on the internal storage space of application.
Example
// Save a file in cache on the internal storage space
sCacheDir is string = fCacheDir()
IF sCacheDir <> "" THEN
fSaveText(sCacheDir + "file.txt", MyString)
END
Syntax
<Result> = fCacheDir()
<Result>: Character string
Path of cache directory of application on the internal storage space of application.
Remarks

Managing the internal cache directory of the application

The data found in this directory will be automatically deleted by the system:
  • if the system requires additional disk space.
  • if the user want to delete the data in cache.
  • if the application is uninstalled.

Tips for using the internal cache directory of the application

  • We advise you to limit the volume of data stored in cache and to delete this data as soon as it is no longer used.
  • The data stored in the cache directory of application on the internal storage space cannot be accessed by the other applications.
  • SysCacheExternalStorage is used to find out the path of the cache directory of the application on the external memory of the device.
Component: wd290android.jar
Minimum version required
  • Version 21
Comments
Click [Add] to post a comment

Last update: 08/22/2022

Send a report | Local help