Thanks for asking question! As defined here that the local cache contains a one-time copy of the /site and /siteextensions folders of the shared content store, at D:\home\site and D:\home\siteextensions, respectively.
The files are copied to the local cache when the app starts. The size of the two folders for each app is limited to 1 GB by default note that this includes the /site and /siteextensions folders that are copied from the content store, as well as any locally created logs and data folders.
To increase this limit, use the app setting WEBSITE_LOCAL_CACHE_SIZEINMB.
You can increase the size up to 2 GB (2000 MB) per app.
Further you may want to know that the App Service silently ignores local cache and reads from the remote file share. If there is no limit defined or the limit is set to anything lower than 2 GB and if the copied files exceeds the limit, the deployment or swap may fail with an error.
Also the best practices for using App Service Local Cache is to use local cache in conjunction with the Staging Environment feature.
Add the sticky app setting WEBSITE_LOCAL_CACHE_OPTION
with the value Always to your Production slot. If you're using WEBSITE_LOCAL_CACHE_SIZEINMB
, also add it as a sticky setting to your Production slot.
Let us know if there is further query or issue remains.