-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yaml のキャッシュ #696
Labels
enhancement
機能追加
Milestone
Comments
@nobuhiko wrote: |
これの、
が使えそうなのですが、うまくキャッシュを読んでくれなくて難儀しています。。 |
キャッシュの種類は、以下が使用できる模様。
apc と filesystem を試してみていますが、キャッシュは作られるものの、目立ったパフォーマンス向上は見られません。。 |
redis の例 diff --git a/src/Eccube/Application.php b/src/Eccube/Application.php
index 08dd7c3..ae5bc44 100644
--- a/src/Eccube/Application.php
+++ b/src/Eccube/Application.php
@@ -439,6 +439,26 @@ class Application extends ApplicationTrait
'orm.proxies_dir' => __DIR__ . '/../../app/cache/doctrine',
'orm.em.options' => array(
'mappings' => $ormMappings,
+ 'metadata_cache' => array(
+ 'driver' => 'redis',
+ 'host' => '127.0.0.1',
+ 'port' => '6379'
+ ),
+ 'query_cache' => array(
+ 'driver' => 'redis',
+ 'host' => '127.0.0.1',
+ 'port' => '6379'
+ ),
+ 'result_cache' => array(
+ 'driver' => 'redis',
+ 'host' => '127.0.0.1',
+ 'port' => '6379'
+ ),
+ 'hydration_cache' => array(
+ 'driver' => 'redis',
+ 'host' => '127.0.0.1',
+ 'port' => '6379'
+ ),
),
));
}
商品一覧なのですが、 少し改善しました。 |
Closed
3.0.11で対応済み。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Slack #test の議論より。
Entity の Yaml を毎回パースしてそう。
xdebug の結果を貼っておきます。
The text was updated successfully, but these errors were encountered: