Unverified Commit bb2b1ff3 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

nixos/mediawiki: enable apcu per default (#476386)

parents fddd547b ad8aed66
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -231,6 +231,9 @@ let
        $wgRightsText = "";
        $wgRightsIcon = "";

        # Enable APCU caching
        $wgMainCacheType = CACHE_ACCEL;

        # Enabled skins.
        ${concatStringsSep "\n" (mapAttrsToList (k: v: "wfLoadSkin('${k}');") cfg.skins)}

@@ -256,8 +259,10 @@ in
      package = mkPackageOption pkgs "mediawiki" { };

      # https://www.mediawiki.org/wiki/Compatibility#PHP
      phpPackage = mkPackageOption pkgs "php" {
        default = "php83";
      phpPackage = mkPackageOption pkgs "php" { } // {
        default = pkgs.php83.buildEnv {
          extensions = { all, enabled }: enabled ++ (with all; [ apcu ]);
        };
      };

      finalPackage = mkOption {