package Cpanel::Easy::Apache::Cache;

# cpanel - Cpanel/Easy/Apache/Cache.pm            Copyright(c) 2011 cPanel, Inc.
#                                                           All rights Reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

our $easyconfig = {
    'name' => 'Cache',
    'url'  => 'http://httpd.apache.org/docs/[% apache_uri_version %]/mod/mod_cache.html',

    'modself' => sub {
        my ( $easy, $self_hr, $profile_hr ) = @_;

        # mod_cache is incompatible with mod_ruid2
        if ( $profile_hr->{'Cpanel::Easy::ModRuid2'} ) {
            $self_hr->{'skip'} = 1;
        }
    },

    'step' => {
        '0' => {
            'name'    => 'to config options',
            'command' => sub {
                my ($self) = @_;
                $self->add_to_configure( { '--enable-cache' => '' } );
                return ( 1, 'Ok' );
            },
        },
    },
};

1;
