Skip to content

Commit f80604d

Browse files
authored
FFWEB-2701: Add disable-cache param in shop configuration and ff-communication
Add disable-cache param in shop configuration and ff-communication
1 parent 50b8662 commit f80604d

6 files changed

Lines changed: 12 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
## Unreleased
33
### Add
44
- Export category for suggest
5+
- Disable-cache param in shop configuration and ff-communication
56

67
## [v4.4.1] - 2023.03.08
78
### Add

src/Model/Config/Communication.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public function getParameters(): array
5252
'use-browser-history' => 'true',
5353
'category-page' => $this->getConfig('ffVersion') === 'ng' && $this->useForCategories() ? $this->getCategoryPath($category) : null,
5454
'add-params' => $this->getConfig('ffVersion') !== 'ng' && $this->useForCategories() ? $this->getCategoryPath($category) : '',
55+
'disable-cache' => $this->getConfig('ffDisableCache') ? 'true' : 'false',
5556
];
5657

5758
return array_filter($this->mergeParameters($params, $this->getAdditionalParameters()));

src/metadata.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,13 @@
275275
'value' => false,
276276
'position' => $settingPosition++,
277277
],
278+
[
279+
'group' => 'ffFeatures',
280+
'name' => 'ffDisableCache',
281+
'type' => 'bool',
282+
'value' => false,
283+
'position' => $settingPosition++,
284+
],
278285
[
279286
'group' => 'ffFeed',
280287
'name' => 'ffExportAttributes',

src/views/admin/de/ffwebcomponents_lang.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
'SHOP_MODULE_ffRecommendations' => 'Empfehlungen',
4242
'SHOP_MODULE_ffSimilarProducts' => 'Ähnliche Produkte',
4343
'SHOP_MODULE_ffPushedProducts' => 'Pushed products',
44+
'SHOP_MODULE_ffDisableCache' => 'Disable cache',
4445
'SHOP_MODULE_GROUP_ffFeed' => 'Feed-Einstellungen',
4546
'SHOP_MODULE_ffExportAttributes' => 'Exportierte Attribute',
4647
'HELP_SHOP_MODULE_ffExportAttributes' => 'Wähle die Attribute aus, die du exportieren möchtest. Multi-Attribute werden in einer Spalte gruppiert, und stellen typischerweise Filter dar.',

src/views/admin/en/ffwebcomponents_lang.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
'SHOP_MODULE_ffRecommendations' => 'Recommendations',
4242
'SHOP_MODULE_ffSimilarProducts' => 'Similar products',
4343
'SHOP_MODULE_ffPushedProducts' => 'Pushed products',
44+
'SHOP_MODULE_ffDisableCache' => 'Disable cache',
4445
'SHOP_MODULE_GROUP_ffFeed' => 'Feed settings',
4546
'SHOP_MODULE_ffExportAttributes' => 'Exported Attributes',
4647
'HELP_SHOP_MODULE_ffExportAttributes' => 'Select attributes which you want to export. Multi-Attribute set to `No` means that specific attribute will be exported in separate column.',

tests/Unit/Export/SuggestCategoryFeed/GenerateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ public function testShouldReturnStreamWithDefaultColumns()
2828
$feed->generate($this->stream);
2929

3030
// Then
31-
$this->assertEquals("Id;Name;CategoryPath;sourceField;ParentCategory;Deeplink\n", $this->stream->getOutput()[0]);
31+
$this->assertEquals("Id;Name;CategoryPath;SourceField;ParentCategory;Deeplink\n", $this->stream->getOutput()[0]);
3232
}
3333
}

0 commit comments

Comments
 (0)