Skip to content

Commit

Permalink
Remove unused $g_allow_file_cache config
Browse files Browse the repository at this point in the history
Issue #33007
  • Loading branch information
dregad committed Dec 10, 2023
1 parent bafd41e commit 943f427
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
12 changes: 1 addition & 11 deletions config_defaults_inc.php
Expand Up @@ -3706,7 +3706,7 @@
/**
* Browser Caching Control
* By default, we try to prevent the browser from caching anything.
* $g_allow_browser_cache & $g_allow_file_cache will defeat this for some cases.
* $g_allow_browser_cache will defeat this for some cases.
*
* Browser Page caching - This will allow the browser to cache all pages. The
* upside will be better performance, but there may be cases where obsolete
Expand All @@ -3718,16 +3718,6 @@
*/
# $g_allow_browser_cache = ON;

/**
* File caching - This will allow the browser to cache downloaded files.
* Without this set, there may be issues with IE receiving files, and launching
* support programs.
*
* @todo The code that references this config considers it ON if it is set (doesn't use config_get_global() / $g_global_settings)
* @global integer $g_allow_file_cache
*/
# $g_allow_file_cache = ON;

#################
# Custom Fields #
#################
Expand Down
3 changes: 3 additions & 0 deletions core/obsolete.php
Expand Up @@ -232,3 +232,6 @@

# changes in 2.25.0
config_obsolete( 'display_project_padding' );

# changes in 2.27.0
config_obsolete( 'allow_file_cache' );
8 changes: 0 additions & 8 deletions docbook/Admin_Guide/en-US/config/webserver.xml
Expand Up @@ -94,14 +94,6 @@ $g_custom_headers = array( 'Content-Security-Policy:' );
allowed) for the bug report pages.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>$g_allow_file_cache</term>
<listitem>
<para>This will allow the browser to cache downloaded files.
Without this set, there may be issues with IE receiving files, and launching
support programs.</para>
</listitem>
</varlistentry>

</variablelist>
</section>

0 comments on commit 943f427

Please sign in to comment.