admin_performance:
  path: /
  methods: [ GET ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\PerformanceController::indexAction'
    _legacy_controller: AdminPerformance
    _legacy_link: AdminPerformance

admin_performance_smarty_save:
  path: /smarty
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\PerformanceController::processSmartyFormAction'
    _legacy_controller: AdminPerformance
    _legacy_link: AdminPerformance:update

admin_performance_debug_mode_save:
  path: /debug-mode
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\PerformanceController::processDebugModeFormAction'
    _legacy_controller: AdminPerformance
    _legacy_link: AdminPerformance:update

admin_performance_optional_features_save:
  path: /optional-features
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\PerformanceController::processOptionalFeaturesFormAction'
    _legacy_controller: AdminPerformance
    _legacy_link: AdminPerformance:update

admin_performance_combine_compress_cache_save:
  path: /combine-compress-cache
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\PerformanceController::processCombineCompressCacheFormAction'
    _legacy_controller: AdminPerformance
    _legacy_link: AdminPerformance:update

admin_performance_media_servers_save:
  path: /media-servers
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\PerformanceController::processMediaServersFormAction'
    _legacy_controller: AdminPerformance
    _legacy_link: AdminPerformance:update

admin_performance_caching_save:
  path: /caching
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\PerformanceController::processCachingFormAction'
    _legacy_controller: AdminPerformance
    _legacy_link: AdminPerformance:update

admin_performance_module_disable_non_builtin:
  path: /disable-non-builtin
  methods: [ GET ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\PerformanceController::disableNonBuiltInAction'
    _legacy_controller: AdminPerformance
    _legacy_link: AdminPerformance:update

admin_clear_cache:
  path: /clear-cache
  methods: [ GET ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\PerformanceController::clearCacheAction'
    _legacy_controller: AdminPerformance
    _legacy_link: AdminPerformance:empty_smarty_cache

admin_servers:
  path: /memcache/servers
  methods: [ GET ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\MemcacheServerController::listAction'
    _legacy_controller: AdminPerformance
  condition: 'request.isXmlHttpRequest()'

admin_servers_add:
  path: /memcache/servers
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\MemcacheServerController::addAction'
    _legacy_controller: AdminPerformance
    _legacy_link: AdminPerformance:submitAddServer
  condition: 'request.isXmlHttpRequest()'

admin_servers_delete:
  path: /memcache/servers
  methods: [ DELETE ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\MemcacheServerController::deleteAction'
    _legacy_controller: AdminPerformance
    _legacy_link: AdminPerformance:deleteMemcachedServer
  condition: 'request.isXmlHttpRequest()'

admin_servers_test:
  path: /memcache/servers/test
  methods: [ GET ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\MemcacheServerController::testAction'
    _legacy_controller: AdminPerformance
    _legacy_link: AdminPerformance:test_server
  condition: 'request.isXmlHttpRequest()'
