Reference manual

Package cache page

This page is hosted by the Main window.

The primary purpose of the package cache is to optimize load performance. A secondary purpose is to allow package resolution to include packages not found in the workspace, see Package resolution search depth dropdown. Basically, the cache consists of artifacts extracted from .app files. The location of the cache is %LOCALAPPDATA%\Statical\PrismAL\PackageCache.

Prism for AL writes to the cache during loading when encountering a new package or a new version of a known package. Anti-virus programs can slow down this process significantly, so – if your security policy allows – you may consider excluding the cache folder from being scanned. If you are using Microsoft Defender, you can use PowerShell to exclude Prism for AL's cache directory. See below how to obtain a PowerShell script for Microsoft Defender. For other anti-virus programs, please check the documentation.

Prism for AL - Main window with package cache page
1 2 3 4 5 6 7 8 9 10 11 12 13
The Package cache page of the main window.
# Name Description
1 Copy script to clipboard Copy PowerShell script for excluding Prism for AL's package cache from Microsoft Defender to clipboard. If the package cache lives on a Microsoft Dev Drive, this step can be skipped.
2 Refresh Re-reads the package cache: packages other processes added or removed, and pin state. The time of the most recent refresh is shown after the wipe buttons.
3 Show only pinned packages Toggle to show only pinned packages. The tooltip shows how many packages are pinned.
4 Wipe selected package Select a package by clicking a row, as Base Application is selected here. Then click Wipe selected package to remove the package from the cache. A pinned package is not removed; a dialogue lists what uses it.
5 Wipe all packages Click to empty the cache. This will save disk space, but will slow down first-time loading of workspaces. Pinned packages are kept and listed in a dialogue afterwards.
6 Total size The total size on disk of all cache entries, including those the filter hides.
7 Filter packages Filter by publisher, name, module id, or version range. Here the range 23.0..24.0 keeps the version 23 packages. The list is changed as you type.
8 Status What the package is doing: a check mark when it is extracted and ready, dots while it is being extracted or deleted, and an error mark when extraction or a delete failed. Hover for details. Click to sort.
9 Pin A pin marks a package in use by a workspace open in this Prism for AL; a grey pin marks one held by another Prism for AL instance. Pinned packages are shown in bold and are protected from wipe. Click to sort.
10 Publisher The module's publisher. Click to sort.
11 Name The module name. Click to sort.
12 Version The module's version. Click to sort.
13 Size The size on disk of this cache entry, with a bar showing its size relative to the largest package in the cache. The list is sorted by size, largest first. Click to sort.

Hover a row to see the package's id, its path in the cache, what pins it, and when it was extracted. Press Ctrl+C to copy the selected row. When the cache is at a location other than the default, the banner also shows the cache folder.