0

How can i Cache MySQL Query 24 Hours in Text Files when using symfony ?

I dont want to Cache the Rest just MySQL , because of whitelabeling.

Is there any warpet Or Similar ?

I already Researched the Results on google but did Not find result.

4

1 回答 1

3

Symfony 本身没有任何查询/结果缓存的功能,但教义有。使用 Symfony 有一些便利——可以通过 config.yml 来启用学说缓存:

doctrine:
    orm:
    metadata_cache_driver: apc
    result_cache_driver: apc
    query_cache_driver: apc

显然,每个查询结果/参数都必须手动保存,这些选项只能启用它。

于 2013-08-21T14:50:48.767 回答