Hamilton Turner 10 yıl önce
ebeveyn
işleme
6c71a78433

+ 23 - 12
frameworks/PHP/README.md

@@ -14,23 +14,34 @@ problematic (e.g. APC allows arbitrary data caching, while
 opcache). 
 
 Caching the output of parsing your configuration files is 
-also expressly allowed (e.g. file caching). Some frameworks
-use APCu to achieve this. 
+also expressly allowed (e.g. file caching, metadata caching).
+Some frameworks use APCu or memcached to achieve this. 
 
 Caching of the classloader (often referred to as optimizing
 the classloader) is also allowed. Most frameworks have their 
 own methods of doing this. 
 
-Caching of any database, ORM results, or rendered templates
-is not allowed. 
-
-Caching any data using Redis is discouraged, as 1) our 
-Redis installation runs on a separate computer across the 
-network, so you won't see much benefit 2) your usage of 
-Redis *may* impact other framework's tests, which we cannot 
-allow. You may launch Redis on the application server as 
-part of your setup.sh scripts and utilize it for caching
-if you so desire. 
+*Caching of any data fetched from the database is not allowed*. 
+Specifically, things such as [Doctrine's Result Cache](http://doctrine-orm.readthedocs.org/en/latest/reference/caching.html#result-cache) are inadmissible. 
+
+However, if you are using an ORM that prepares SQL 
+statements in some way, such as how 
+[Doctrine](http://doctrine-orm.readthedocs.org/en/latest/reference/caching.html#query-cache) 
+translates DQL into SQL, this translated form can be 
+cached, as long as you are dynamically accepting 
+query parameters. 
+
+Caching any data using databases (Redis, MongoDB, etc) 
+is discouraged, as 1) our databases run on a separate 
+computer across the network, so you won't see much 
+benefit 2) your usage of the DB *may* impact other 
+framework's tests, which we cannot allow. You may launch 
+a DB locally on the application server as part of your 
+`setup.sh` scripts and utilize it for caching the allowable
+cache items, if you so desire, but it's normally much 
+easier to use systems such as APCu.
+
+Ask if you are not certain.
 
 # Adding New PHP-based Frameworks
 

+ 2 - 0
frameworks/PHP/php-symfony2-stripped/.gitignore

@@ -8,3 +8,5 @@
 .DS_Store
 /tags
 .idea
+app/bootstrap.php.cache
+deploy/php-fpm.pid

+ 0 - 10
frameworks/PHP/php-symfony2-stripped/.travis.yml

@@ -1,10 +0,0 @@
-language: php
-
-php:
-  - 5.3.3
-  - 5.3
-  - 5.4
-
-before_script: composer install
-
-script: phpunit -c app

+ 0 - 10
frameworks/PHP/php-symfony2/.travis.yml

@@ -1,10 +0,0 @@
-language: php
-
-php:
-  - 5.3.3
-  - 5.3
-  - 5.4
-
-before_script: composer install
-
-script: phpunit -c app