Performance: Only scan for private templates when going home
fixed: flash drive offline test would crash CA since last update
This commit is contained in:
Squidly271 2022-09-17 10:38:07 -04:00
parent 82b711a529
commit f29a80ef53
4 changed files with 5 additions and 4 deletions

Binary file not shown.

View File

@ -198,6 +198,7 @@ $(function(){
}
});
return;
});
<?else:?>
// don't run this through the wrapper so that if it hangs up it won't delay anything else
$.post("/plugins/<?=$plugin?>/include/exec.php",{action:'getPortsInUse'},function(data) {

View File

@ -1,8 +1,8 @@
bcdbfc0c658bcc641a809f45808fbd95 ./Apps.page
9a5ce7938223bd1abce7660d8ee9e7cf ./Apps.page
4e55f7483b661af21a25b677179baffe ./CA_notices.page
42a1658a916a3a3eed2a9f2af80603c4 ./ca_settings.page
e718d7825dbdc96a17a915079222b098 ./default.cfg
215a78bda8752c4356e4eda79518fe03 ./include/exec.php
141185e4e1fee9ada93112be1c3277b9 ./include/exec.php
f25b1ed0b1cddfb4ff95a10ced212a0d ./include/helpers.php
116042a918060278e77379b0dd73482c ./include/paths.php
532fffdf939594c143e679da02bd841e ./javascript/libraries.js

View File

@ -659,8 +659,6 @@ function get_content() {
}
$category = $category ? "/$category/i" : false;
getConvertedTemplates();
if ( strpos($category,":") && $filter ) {
$disp = readJsonFile($caPaths['community-templates-allSearchResults']);
$file = $disp['community'];
@ -670,6 +668,8 @@ function get_content() {
if ( empty($file)) return;
if ( !$filter && $category === "/NONE/i" ) {
getConvertedTemplates(); // Only scan for private XMLs when going HOME
file_put_contents($caPaths['startupDisplayed'],"startup");
$displayApplications = [];
$displayApplications['community'] = [];