BUG 0000 "Safe upgrade for JavaScript files" SOLVED
- 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
This commit is contained in:
21
workflow/engine/bin/tasks/cliBrowserCacheFiles.php
Normal file
21
workflow/engine/bin/tasks/cliBrowserCacheFiles.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user