Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Do not cache query result
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jun 12, 2014
1 parent bbe1edf commit 565d99c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/src/core/classes/class.AJXP_XMLWriter.php
Expand Up @@ -580,11 +580,7 @@ public static function writeRepositoriesData($loggedUser)
$st = "<repositories>";
$streams = ConfService::detectRepositoryStreams(false);

$exposed_props = AJXP_PluginsService::getInstance()->loadFromPluginQueriesCache("//server_settings/param[contains(@scope,'repository') and @expose='true']");
if ($exposed_props == null) {
$exposed_props = AJXP_PluginsService::searchAllManifests("//server_settings/param[contains(@scope,'repository') and @expose='true']", "node", false, false, true);
AJXP_PluginsService::getInstance()->storeToPluginQueriesCache("//server_settings/param[contains(@scope,'repository') and @expose='true']", $exposed_props);
}
$exposed_props = AJXP_PluginsService::searchAllManifests("//server_settings/param[contains(@scope,'repository') and @expose='true']", "node", false, false, true);

foreach (ConfService::getAccessibleRepositories($loggedUser, false, false) as $repoId => $repoObject) {
$toLast = false;
Expand Down

0 comments on commit 565d99c

Please sign in to comment.