Skip to content

Commit

Permalink
Web: Add modules.json to gitignore and disable cache by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian committed Aug 14, 2011
1 parent 5cce4cb commit 95ed074
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
docs/*
docs
web/cache/modules.json
1 change: 0 additions & 1 deletion web/cache/modules.json

This file was deleted.

7 changes: 3 additions & 4 deletions web/public/index.php
Expand Up @@ -19,7 +19,7 @@
'dojo/array',
'dojo/fx/Toggler'
),
'cache' => true,
'cache' => false,
'minifier' => array(
'yui' => '/home/arian/www/yuicompressor.jar',
'uglify-js' => true,
Expand All @@ -43,7 +43,7 @@
$packager->addAlias($alias, $url);
}
$builder = $packager->req($options['modules']);

if (!empty($options['cache'])){
file_put_contents($cache_file, $builder->toJSON());
}
Expand Down Expand Up @@ -99,7 +99,7 @@
}

$zip->close();

header('Content-Type: application/zip');
header('Content-Disposition: attachment; filename="packaged.zip"');

Expand All @@ -115,4 +115,3 @@
}

}

0 comments on commit 95ed074

Please sign in to comment.