From c670a80ddd9b03bd4ea6d940a9ed682fd26248d7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 18 Mar 2013 11:00:44 +0400 Subject: cache minified js files --- prefs.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'prefs.php') diff --git a/prefs.php b/prefs.php index 4027fd1fa..a47d00bce 100644 --- a/prefs.php +++ b/prefs.php @@ -54,13 +54,8 @@ } } - foreach (array("functions", "deprecated", "prefs") as $js) { - if (!isset($_GET['debug'])) { - echo JShrink\Minifier::minify(file_get_contents("js/$js.js")); - } else { - echo file_get_contents("js/$js.js"); - } - } + print get_minified_js(array("functions", "deprecated", "prefs")); + ?> -- cgit v1.2.3