Author: caefer
Date: 2010-05-07 15:42:44 +0200 (Fri, 07 May 2010)
New Revision: 29386

Modified:
   plugins/sfImageTransformExtraPlugin/trunk/config/settings.yml
   
plugins/sfImageTransformExtraPlugin/trunk/config/sfImageTransformExtraPluginConfiguration.class.php
Log:
added a setting to re-configure the cache_namespace_callable

Modified: plugins/sfImageTransformExtraPlugin/trunk/config/settings.yml
===================================================================
--- plugins/sfImageTransformExtraPlugin/trunk/config/settings.yml       
2010-05-07 13:41:57 UTC (rev 29385)
+++ plugins/sfImageTransformExtraPlugin/trunk/config/settings.yml       
2010-05-07 13:42:44 UTC (rev 29386)
@@ -1,7 +1,8 @@
 all:
   .settings:
     thumbnail_cache:
-      class: sfRawFileCache
+      class:                        sfRawFileCache
       param:
         automatic_cleaning_factor:  0
         cache_dir:                  %SF_WEB_DIR%
+      namespace_callback:           'sfRawFileCache::setCacheKey'

Modified: 
plugins/sfImageTransformExtraPlugin/trunk/config/sfImageTransformExtraPluginConfiguration.class.php
===================================================================
--- 
plugins/sfImageTransformExtraPlugin/trunk/config/sfImageTransformExtraPluginConfiguration.class.php
 2010-05-07 13:41:57 UTC (rev 29385)
+++ 
plugins/sfImageTransformExtraPlugin/trunk/config/sfImageTransformExtraPluginConfiguration.class.php
 2010-05-07 13:42:44 UTC (rev 29386)
@@ -51,7 +51,10 @@
 
     if(sfConfig::get('sf_cache') && 'sfImageTransformator' == 
$params['module'] && 'index' == $params['action'])
     {
-      sfConfig::set('sf_cache_namespace_callable', 
'sfRawFileCache::setCacheKey');
+      if(false !== sfConfig::get('sf_thumbnail_cache_namespace_callback', 
false))
+      {
+        sfConfig::set('sf_cache_namespace_callable', 
sfConfig::get('sf_thumbnail_cache_namespace_callback'));
+      }
 
       $viewCacheManager = 
sfContext::getInstance(sfConfig::get('sf_app'))->getViewCacheManager();
       $viewCacheManager->initialize(

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to