- New feature
- Safe upgrade for JavaScript files
- Added new feature,
- This new feature is activated when you run one of the following commands:
$ ./processmaker upgrade
$ ./processmaker build-js
$ ./processmaker browser-cache-files-upgrade
- The new feature creates an attribute in the file "processmaker/workflow/engine/config/env.ini"
Example:
browser_cache_files_uid = "xxxxxxxxxxyyyyyyyyyyzzzzzzzzzzaa"
- After running the command, the browser should automatically cache the new files
* Available from version ProcessMaker-2.5
22 lines
468 B
PHP
22 lines
468 B
PHP
<?php
|
|
CLI::taskName("browser-cache-files-upgrade");
|
|
|
|
CLI::taskDescription(<<<EOT
|
|
Safe upgrade for files cached by the browser
|
|
|
|
This command should be run after any upgrade/modification of files cached by the browser.
|
|
EOT
|
|
);
|
|
|
|
CLI::taskRun(runBrowserCacheFiles);
|
|
|
|
function runBrowserCacheFiles($command, $args)
|
|
{
|
|
CLI::logging("Safe upgrade for files cached by the browser\n");
|
|
|
|
G::browserCacheFilesSetUid();
|
|
|
|
CLI::logging("Upgrade successful\n");
|
|
}
|
|
|