X
X
xbox2015-05-07 14:29:12
symfony
xbox, 2015-05-07 14:29:12

Why does Symfony 1.2 continue to store part of the cache on disk, even if the config specifies to store the cache in memory (XCache)?

Good afternoon.
Symfony 1.2 project.
In the factories.yml settings at the project level, I change the storage location of the Symfony cache from sfFileCache to sfXCacheCache. As a result, I want the Symfony cache to be stored not on disk, but in Xcache memory.
After my tweaks, some of the Symfony cache actually starts to be stored in memory, but the cache part continues to use disk.
PROJECT_ROOT_DIR/Config/factories.yml:

view_cache:
    class: sfXCacheCache
    param:
      automaticCleaningFactor: 0
      storeCacheInfo:          true	
  i18n:
    class: sfI18N
    param:
      cache:
        class: sfXCacheCache
        param:          
          lifetime:                  31556926
          automaticCleaningFactor: 0
          storeCacheInfo:          true	
  routing:
    class: sfPatternRouting
    param:      
      cache:
        class: sfXCacheCache
        param:
          automatic_cleaning_factor: 0          
          lifetime:                  31556926
          storeCacheInfo:          true

The cache of module templates, the i18n cache, and the routing cache enter the Xcache memory.
And the following files are generated on the disk:
(below in the path name: index - application name, prod - environment name)
PROJECT_ROOT_DIR/cache/index/prod/config:
config_app.yml.php
config_autoload.yml.php
config_config_handlers.yml.php
config_core_compile.yml.php
config_databases.yml.php
config_factories.yml.php
config_phpexcel.yml.php
config_routing.yml.php
config_settings.yml.php

modules_catalog_brand_config_cache.yml.php
modules_catalog_brand_config_filters.yml.php
modules_catalog_brand_config_module.yml.php
modules_catalog_brand_config_security.yml.php
modules_catalog_brand_config_view.yml.php

modules_catalog_config_cache.yml.php
modules_catalog_config_filters.yml.php
modules_catalog_config_module.yml.php
modules_catalog_config_security.yml.php
modules_catalog_config_view.yml.php
modules_compare_config_module.yml.php

modules_faq_config_cache.yml.php
modules_faq_config_filters.yml.php
modules_faq_config_module.yml.php
modules_faq_config_security.yml.php

modules_homepage_config_cache.yml.php
modules_homepage_config_filters.yml.php
modules_homepage_config_module.yml.php
modules_homepage_config_security.yml.php
modules_homepage_config_view.yml.php
и т.п.

VERSION

In this case, if you look at the files that are in the cache folder, then they begin like this:
For modules:
// auto-generated by sfCacheConfigHandler
...
// auto-generated by sfFilterConfigHandler
// auto-generated by sfDefineEnvironmentConfigHandler
// auto-generated by sfSecurityConfigHandler
// auto-generated by sfViewConfigHandler

For config:
// auto-generated by sfRootConfigHandler
...

The referense description of Symfony only mentions the cache settings for view_cache, i18n and routing. No more cache settings are set for anything.
I edit the factories.yml file at the project level. At the application level, factories.yml settings do not overlap. I even tried to change factories.yml at the Symfony level (SymfonyDir/lib/config/config/factories.yml. Nothing helps.
For the cleanliness of the experiment, when testing, after changing the settings, I always completely clear the cache folder on the disk and completely clear the memory in Xcache. Tell me
why Symfony continues to save some of the cache files to disk and can this be fixed somehow?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question