Scripting for Stylesheet Caching
msiebler 2700005RPQ Visits (3933)
How to cache all your stylesheets:
This is a useful trick for several reasons. If you are curious to see how much memory all of your compiled stylesheets could possibly use, here is a (relatively) quick way to find out. Also, with some modification, this could be used as a startup script to precache your stylesheets to improve user latency when the device is first put online.
Assume you have a backup of the device, such as all.zip.
Now remove the default domain, we assume one does not have (many) customer stylesheets in that domain:
Now unzip the domains:
Now extract all the stylesheets:
Now open this file in a text editor and search and remove '.zip.0/local'.
Now you have a cli script. You can cut & paste this into a ssh session, or exec it from the command line.
Before you run this; don't forget to count all the files, and increase the cache size of the default domain default XML manager to hold them all: