Get(CacheFilePath)

Returns the path of the cache file for the currently active file.

Format 

Get ( CacheFilePath )

Parameters 

None

Data type returned 

text

Originated in version 

20.1

Description 

If the current calculation is stored and you specify its context, this function will be evaluated based on that context; otherwise, it will be evaluated based on the context of the current window.

Notes 

  • For server-side scripts, FileMaker WebDirect, FileMaker Data API, and Custom Web Publishing, this function is not supported and returns an empty string.

  • The returned path is in FileMaker format but doesn't include a path prefix.

Example 1 

Returns /C:/Users/username/AppData/Local/Temp/ for a local cache file in Windows.

Returns /C:/Users/username/AppData/Local/Temp/FileMaker/DBCache/0C1955466C685EB0BE9D9A99887601FB/ for a remote cache file in Windows.

Returns /Macintosh HD/var/folders/r8/k3_nw76d6t95mh6cf3d21fpc0000gn/T/ for a local cache file in macOS.

Returns /Macintosh HD/Users/username/Library/Caches/FileMaker/DBCache/0C1955466C685EB0BE9D9A99887601FB/ for a remote cache file in macOS.

Each part of the path may vary from these examples, so don't rely on the path to follow a particular pattern.