Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

51 řádky
2.6 KiB

  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  9. <type name="Magento\Framework\App\PageCache\Identifier">
  10. <plugin name="core-app-area-design-exception-plugin"
  11. type="Magento\PageCache\Model\App\CacheIdentifierPlugin" sortOrder="10"/>
  12. </type>
  13. <type name="Magento\Framework\App\PageCache\Cache">
  14. <plugin name="fpc-type-plugin" type="Magento\PageCache\Model\App\PageCachePlugin"/>
  15. </type>
  16. <type name="Magento\Config\Model\Config\TypePool">
  17. <arguments>
  18. <argument name="sensitive" xsi:type="array">
  19. <item name="system/full_page_cache/varnish/access_list" xsi:type="string">1</item>
  20. <item name="system/full_page_cache/varnish/backend_host" xsi:type="string">1</item>
  21. </argument>
  22. <argument name="environment" xsi:type="array">
  23. <item name="system/full_page_cache/varnish/backend_host" xsi:type="string">1</item>
  24. <item name="system/full_page_cache/varnish/backend_port" xsi:type="string">1</item>
  25. </argument>
  26. </arguments>
  27. </type>
  28. <type name="Magento\Framework\Console\CommandListInterface">
  29. <arguments>
  30. <argument name="commands" xsi:type="array">
  31. <item name="VarnishGenerateVclCommand" xsi:type="object">Magento\PageCache\Console\Command\GenerateVclCommand</item>
  32. </argument>
  33. </arguments>
  34. </type>
  35. <type name="Magento\PageCache\Controller\Block">
  36. <arguments>
  37. <argument name="layoutCacheKey" xsi:type="object">Magento\Framework\View\Layout\LayoutCacheKeyInterface</argument>
  38. </arguments>
  39. </type>
  40. <type name="Magento\Framework\App\Cache\RuntimeStaleCacheStateModifier">
  41. <arguments>
  42. <argument name="cacheTypes" xsi:type="array">
  43. <item name="full_page_cache" xsi:type="const">Magento\PageCache\Model\Cache\Type::TYPE_IDENTIFIER</item>
  44. </argument>
  45. </arguments>
  46. </type>
  47. <preference for="Magento\PageCache\Model\VclGeneratorInterface" type="Magento\PageCache\Model\Varnish\VclGenerator"/>
  48. <preference for="Magento\PageCache\Model\VclTemplateLocatorInterface" type="Magento\PageCache\Model\Varnish\VclTemplateLocator"/>
  49. <preference for="Magento\PageCache\Model\Spi\PageCacheTagsPreprocessorInterface" type="Magento\PageCache\Model\PageCacheTagsPreprocessorComposite"/>
  50. </config>