Permalink
Browse files

Resizer

  • Loading branch information...
1 parent 2faf36b commit fd48cb51a7d975ff4fc24408d78340a54977e687 David Mongeau-Petitpas committed Mar 28, 2011
Showing with 7 additions and 6 deletions.
  1. +1 −1 .gitignore
  2. +1 −1 Gregory/plugins/resizer/resizer.php
  3. +3 −3 public_html/.htaccess
  4. +2 −1 public_html/index.php
View
@@ -1 +1 @@
-Gregory/plugins/resizer/cache/*
+public_html/statics/photos/_cache/*
@@ -9,7 +9,7 @@
*/
$config = array_merge(array(
'path' => dirname(__FILE__),
- 'cachePath' => dirname(__FILE__).'/cache',
+ 'cachePath' => dirname(__FILE__).'/_cache',
'quality' => 90,
'cache' => true,
'memory_limit' => '120M'
View
@@ -17,12 +17,12 @@ RewriteRule "." - [skip=100]
##############Redirection des images en cache
-RewriteCond %{REQUEST_URI} ^/photos/resizer/
+RewriteCond %{REQUEST_URI} ^/resizer/
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
-RewriteCond %{DOCUMENT_ROOT}/app/_var/cache/resizer/$1 -f
-RewriteRule ^photos/resizer/(.*) /app/_var/cache/resizer/$1 [L]
+RewriteCond %{DOCUMENT_ROOT}/statics/photos/_cache/$1 -f
+RewriteRule ^resizer/(.*) /statics/photos/_cache/$1 [L]
##############
View
@@ -37,7 +37,8 @@
));
$app->addPlugin('resizer/resizer.php',array(
- 'path'=>dirname(__FILE__).'/statics/photos'
+ 'path' => dirname(__FILE__).'/statics/photos',
+ 'cachePath' =>dirname(__FILE__).'/statics/photos/_cache'
),false);

0 comments on commit fd48cb5

Please sign in to comment.