PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
fCacheDir (Function)
In French: fRepCache
ODBCOLE DBAvailable only with these kinds of connection
Returns the path of the directory that will be used to store the data in cache on the internal storage space of the 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 the cache directory of the application on the internal storage space of the 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 the 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.
Components
Android wd230android.jar
Minimum required version
  • Version 21
Comments
Click [Add] to post a comment