Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1170102
D154.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Sep 27, 12:08 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Sun, Sep 28, 12:08 AM (11 h, 57 m)
Engine
blob
Format
Raw Data
Handle
758200
Attached To
D154: INP-1503 - Search for new units during install/upgrade
D154.diff
View Options
Index: branches/5.2.x/core/kernel/utility/unit_config_reader.php
===================================================================
--- branches/5.2.x/core/kernel/utility/unit_config_reader.php
+++ branches/5.2.x/core/kernel/utility/unit_config_reader.php
@@ -185,13 +185,23 @@
function includeConfigFiles($folderPath, $cache = true)
{
+ $data = false;
$this->Application->refreshModuleInfo();
- if ( $this->Application->isCachingType(CACHING_TYPE_MEMORY) ) {
- $data = $this->Application->getCache('master:config_files', false, $cache ? CacheSettings::$unitCacheRebuildTime : 0);
- }
- else {
- $data = $this->Application->getDBCache('config_files', $cache ? CacheSettings::$unitCacheRebuildTime : 0);
+ if ( $cache ) {
+ if ( $this->Application->isCachingType(CACHING_TYPE_MEMORY) ) {
+ $data = $this->Application->getCache(
+ 'master:config_files',
+ false,
+ CacheSettings::$unitCacheRebuildTime
+ );
+ }
+ else {
+ $data = $this->Application->getDBCache(
+ 'config_files',
+ CacheSettings::$unitCacheRebuildTime
+ );
+ }
}
if ( $data ) {
Event Timeline
Log In to Comment