On 06/16/2011 05:07 PM, Philippe Nobili wrote: > > We will certainly take some time to port & test our various plugins to > the "polished" XXE release 4.9.1. > > We have however some concern about the new cache system, many thanks for > your help. Here is how XXE is mainly used at my company: > > + We develop our own plugins either for our specific XML dialects, or > for customization purposes (e.g. DocBook-4) > > + Our processing software is automatically distributed overnight, it > contains somewhere a distribution of XXE, which is then automatically > updated nightly (that is, when changes take place). > > Every morning, our users use upgraded versions of all our XXE plugins. > There are two major types of uses: > > 1) Some users (the technical writers) launches the XXE interactive > application (a command, e.g. 'xmlmind' available form his/her PATH) > > In this case, if we understand the cache system, it would be > mandatory for these users to turn the cache off, or it would prevent our > XXE plugins to be used ? > > Since XXE is opened, this would not be a major problem here I guess. > > 2) Most users (developers) uses XXE without knowing it, within a batch > command, e.g. when generating some PDF documentation for their > processing modules during compilation phases. > > In this case, what happen if the cache is turned on ? (if it will > be by default with XXE 4.9.x ). > Unless we have misunderstood how the cache works, it might be > problematic since we cannot ask to users of a batch command to launch > an interactive application just to turn the cache off... > > In case the above statements are true, would it sound reasonable, for > backward compatibility reasons, to consider using the cache system as a > user's choice rather than as a default ? Or is there other way around ? > > In case the above statements are false, accept our apologies for the > silly question... >
Your question is on the contrary a very good one. --> Without the Quick Start cache, XXE used to discover new add-ons each time it was launched. With the Quick Start cache, XXE caches information about the add-ons it has discovered the first time it has been launched. The contents of the Quick Start cache consists in: * The list of the URLs of all the .jar files which are used to create the CLASSPATH of XXE. * The class names of all plug-ins (e.g. FOP). * The list of the URLs of all XML catalogs. * The list of the URLs of all spell-checker dictionaries. * The list of the URLs of all customize.xxe_gui files. * The list of the URLs of all .xxe files. * A digest of all discovered configurations. This digest consists in the name of the configuration, its URL and its <detect> clause. The Quick Start cache is automatically cleared when you upgrade XXE or when you use "Options|Install Add-ons" to add or remove add-ons. The Quick Start cache is clearly intended to be used by normal users. A normal user typically uses a single bundled document type (e.g. DocBook 5) and don't care about the other document types (e.g. DocBook 4, DITA, XHTML) A normal user never installs add-ons or new releases of XXE by copying files by hand to the ``right locations''. --> In your case, we strongly recommend to permanently disable this cache: [1] Please tell your interactive users to disable it using Options|Preferences, Avanced|Cached Data. See http://www.xmlmind.com/xmleditor/_distrib/doc/help/advancedOptions.html#cacheOptions Alternatively, please run: xxe -putpref quickStartCache false See http://www.xmlmind.com/xmleditor/_distrib/doc/help/preferenceKeys.html [2] Add the following line to all your .bat files making use of convertdoc (that is, XXE without a GUI): del /Q %APPDATA%\XMLmind\XMLEditor4\cache\start\*.* -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

