Skip to content

Commit 60c3d46

Browse files
dploegerThomasMinor
authored andcommitted
Fixing parameters in deprecated module to keep
backwards compatibility
1 parent b57883e commit 60c3d46

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

manifests/mod/disk_cache.pp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
# Default depends on the Apache version and operating system:
77
# - Debian: /var/cache/apache2/mod_cache_disk
88
# - FreeBSD: /var/cache/mod_cache_disk
9-
# - Red Hat, Apache 2.4: /var/cache/httpd/proxy
10-
# - Red Hat, Apache 2.2: /var/cache/mod_proxy
119
#
1210
# @param cache_ignore_headers
1311
# Specifies HTTP header(s) that should not be stored in the cache.
@@ -16,13 +14,12 @@
1614
# Apache 2.2, mod_disk_cache installed. On Apache 2.4, mod_cache_disk installed.
1715
# This class is deprecated, use mode_cache_disk instead
1816
#
19-
# @see https://httpd.apache.org/docs/2.2/mod/mod_disk_cache.html for additional documentation on version 2.2.
20-
#
2117
# @see https://httpd.apache.org/docs/2.4/mod/mod_cache_disk.html for additional documentation on version 2.4.
2218
#
2319
class apache::mod::disk_cache (
24-
$cache_root = undef,
25-
$cache_ignore_headers = undef,
20+
Optional[Stdlib::Absolutepath] $cache_root = undef,
21+
Optional[String] $cache_ignore_headers = undef,
22+
Boolean $default_cache_enable = true,
2623
) {
2724
deprecation('apache::mod::disk_cache','This module is deprecated; please use apache::mod::cache_disk')
2825

0 commit comments

Comments
 (0)