我在symfony 1.4中使用sfMemcacheCache,我不知道如何清除RAM上的缓存
(factories.yml文件)
prod:
logger:
class: sfNoLogger
param:
level: err
loggers: ~
test:
storage:
class: sfSessionTestStorage
param:
session_path: %SF_TEST_CACHE_DIR%/sessions
response:
class: sfWebResponse
param:
send_http_headers: false
mailer:
param:
delivery_strategy: none
dev:
mailer:
param:
delivery_strategy: none
all:
routing:
class: sfPatternRouting
param:
generate_shortest_url: true
extra_parameters_as_query_string: true
view_cache_manager:
class: sfViewCacheManager
param:
cache_key_use_vary_headers: true
cache_key_use_host_name: true
view_cache:
class: sfMemcacheCache
param:
automatic_cleaning_factor: 0
servers:
localhost:
host: localhost
port: 11211
serializer: IGBINARY
mode: compiled
答案 0 :(得分:1)
我确信会这样做:
// Erase the whole cache
$ php symfony cache:clear
// Short syntax
$ php symfony cc
如果这不起作用,缓存是否在RAM中,您只需重新启动服务器,如果您正在使用apache,请执行以下操作:
$ service apache2 restart
答案 1 :(得分:1)
您可以重新启动memcached服务器;
/etc/init.d/memcached restart