This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "quickfw".
The branch, master has been updated
via c2c198d04eb089c31550a6a4b711fb95d6c25851 (commit)
from eb873926560f1f28840e97f3de9151cfc7d29824 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c2c198d04eb089c31550a6a4b711fb95d6c25851
Author: Ivan1986 <iva...@li...>
Date: Wed Jun 30 18:10:37 2010 +0400
Cache::get не требует указание кешера в конфиге - понимает стандартные
diff --git a/QFW/QuickFW/Cache.php b/QFW/QuickFW/Cache.php
index 3b38942..3fe6f81 100644
--- a/QFW/QuickFW/Cache.php
+++ b/QFW/QuickFW/Cache.php
@@ -113,7 +113,7 @@ class Cache
/**
* Фабрика кешеров
*
- * @param string $name тип кешера
+ * @param string $name кешер - из массива или стандартный
* @param string $namespace пространство имен
* @return Zend_Cache_Backend_Interface кешер
*/
@@ -125,12 +125,15 @@ class Cache
$c = self::$cachers['__'.$name];
else
{
- if (!isset(QFW::$config['cache'][$name]))
- throw new Exception('Не найдены парамерты кеша '.$name);
- $data = QFW::$config['cache'][$name];
- $backend=ucfirst($data['module']);
+ if (isset(QFW::$config['cache'][$name]))
+ {
+ $data = QFW::$config['cache'][$name];
+ $backend = ucfirst($data['module']);
+ }
+ else
+ $backend = $name;
$cl='Cacher_'.$backend;
- require_once(QFWPATH.'/Cacher/'.$backend.'.php');
+ require_once QFWPATH.'/Cacher/'.$backend.'.php';
$c=new $cl;
$c->setDirectives(
(isset($data['options']) && is_array($data['options']))
-----------------------------------------------------------------------
Summary of changes:
QFW/QuickFW/Cache.php | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
hooks/post-receive
--
quickfw
|