Skip to content

Commit decb2dd

Browse files
authored
Remove the client id in the model cleanCache function (#44637)
Thanks @laoneo
1 parent 25f009f commit decb2dd

File tree

13 files changed

+26
-52
lines changed

13 files changed

+26
-52
lines changed

administrator/components/com_categories/src/Model/CategoryModel.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,15 +1211,13 @@ protected function batchMove($value, $pks, $contexts)
12111211
/**
12121212
* Custom clean the cache of com_content and content modules
12131213
*
1214-
* @param string $group Cache group name.
1215-
* @param integer $clientId No longer used, will be removed without replacement
1216-
* @deprecated 4.3 will be removed in 6.0
1214+
* @param string $group Cache group name.
12171215
*
12181216
* @return void
12191217
*
12201218
* @since 1.6
12211219
*/
1222-
protected function cleanCache($group = null, $clientId = 0)
1220+
protected function cleanCache($group = null)
12231221
{
12241222
$extension = Factory::getApplication()->getInput()->get('extension');
12251223

administrator/components/com_content/src/Model/ArticleModel.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,15 +1032,13 @@ protected function preprocessForm(Form $form, $data, $group = 'content')
10321032
/**
10331033
* Custom clean the cache of com_content and content modules
10341034
*
1035-
* @param string $group The cache group
1036-
* @param integer $clientId No longer used, will be removed without replacement
1037-
* @deprecated 4.3 will be removed in 6.0
1035+
* @param string $group Cache group name.
10381036
*
10391037
* @return void
10401038
*
10411039
* @since 1.6
10421040
*/
1043-
protected function cleanCache($group = null, $clientId = 0)
1041+
protected function cleanCache($group = null)
10441042
{
10451043
parent::cleanCache('com_content');
10461044
parent::cleanCache('mod_articles_archive');

administrator/components/com_fields/src/Model/FieldModel.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,15 +1112,13 @@ function () use ($component, $section) {
11121112
/**
11131113
* Clean the cache
11141114
*
1115-
* @param string $group The cache group
1116-
* @param integer $clientId No longer used, will be removed without replacement
1117-
* @deprecated 4.3 will be removed in 6.0
1115+
* @param string $group Cache group name.
11181116
*
11191117
* @return void
11201118
*
11211119
* @since 3.7.0
11221120
*/
1123-
protected function cleanCache($group = null, $clientId = 0)
1121+
protected function cleanCache($group = null)
11241122
{
11251123
$context = Factory::getApplication()->getInput()->get('context');
11261124

administrator/components/com_fields/src/Model/GroupModel.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,15 +354,13 @@ public function getItem($pk = null)
354354
/**
355355
* Clean the cache
356356
*
357-
* @param string $group The cache group
358-
* @param integer $clientId No longer used, will be removed without replacement
359-
* @deprecated 4.3 will be removed in 6.0
357+
* @param string $group Cache group name.
360358
*
361359
* @return void
362360
*
363361
* @since 3.7.0
364362
*/
365-
protected function cleanCache($group = null, $clientId = 0)
363+
protected function cleanCache($group = null)
366364
{
367365
$context = Factory::getApplication()->getInput()->get('context');
368366

administrator/components/com_finder/src/Model/FilterModel.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,13 @@ class FilterModel extends AdminModel
4545
/**
4646
* Custom clean cache method.
4747
*
48-
* @param string $group The component name. [optional]
49-
* @param integer $clientId No longer used, will be removed without replacement
50-
* @deprecated 4.3 will be removed in 6.0
48+
* @param string $group The component name. [optional]
5149
*
5250
* @return void
5351
*
5452
* @since 2.5
5553
*/
56-
protected function cleanCache($group = 'com_finder', $clientId = 0)
54+
protected function cleanCache($group = 'com_finder')
5755
{
5856
parent::cleanCache($group);
5957
}

administrator/components/com_languages/src/Model/LanguageModel.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,13 @@ public function save($data)
268268
/**
269269
* Custom clean cache method.
270270
*
271-
* @param string $group Optional cache group name.
272-
* @param integer $clientId No longer used, will be removed without replacement
273-
* @deprecated 4.3 will be removed in 6.0
271+
* @param string $group Cache group name.
274272
*
275273
* @return void
276274
*
277275
* @since 1.6
278276
*/
279-
protected function cleanCache($group = null, $clientId = 0)
277+
protected function cleanCache($group = null)
280278
{
281279
parent::cleanCache('_system');
282280
parent::cleanCache('com_languages');

administrator/components/com_languages/src/Model/LanguagesModel.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,15 +222,13 @@ public function delete($pks)
222222
/**
223223
* Custom clean cache method, 2 places for 2 clients.
224224
*
225-
* @param string $group Optional cache group name.
226-
* @param integer $clientId No longer used, will be removed without replacement
227-
* @deprecated 4.3 will be removed in 6.0
225+
* @param string $group Cache group name.
228226
*
229227
* @return void
230228
*
231229
* @since 1.6
232230
*/
233-
protected function cleanCache($group = null, $clientId = 0)
231+
protected function cleanCache($group = null)
234232
{
235233
parent::cleanCache('_system');
236234
parent::cleanCache('com_languages');

administrator/components/com_menus/src/Model/ItemModel.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,15 +1746,13 @@ protected function generateNewTitle($parentId, $alias, $title)
17461746
/**
17471747
* Custom clean the cache
17481748
*
1749-
* @param string $group Cache group name.
1750-
* @param integer $clientId No longer used, will be removed without replacement
1751-
* @deprecated 4.3 will be removed in 6.0
1749+
* @param string $group Cache group name.
17521750
*
17531751
* @return void
17541752
*
17551753
* @since 1.6
17561754
*/
1757-
protected function cleanCache($group = null, $clientId = 0)
1755+
protected function cleanCache($group = null)
17581756
{
17591757
parent::cleanCache('com_menus');
17601758
parent::cleanCache('com_modules');

administrator/components/com_menus/src/Model/MenuModel.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,15 +402,13 @@ public function getExtensionElementsForMenuItems(array $itemIds): array
402402
/**
403403
* Custom clean the cache
404404
*
405-
* @param string $group Cache group name.
406-
* @param integer $clientId No longer used, will be removed without replacement
407-
* @deprecated 4.3 will be removed in 6.0
405+
* @param string $group Cache group name.
408406
*
409407
* @return void
410408
*
411409
* @since 1.6
412410
*/
413-
protected function cleanCache($group = null, $clientId = 0)
411+
protected function cleanCache($group = null)
414412
{
415413
parent::cleanCache('com_menus');
416414
parent::cleanCache('com_modules');

administrator/components/com_modules/src/Model/ModuleModel.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,15 +1090,13 @@ protected function getReorderConditions($table)
10901090
/**
10911091
* Custom clean cache method for different clients
10921092
*
1093-
* @param string $group The name of the plugin group to import (defaults to null).
1094-
* @param integer $clientId No longer used, will be removed without replacement
1095-
* @deprecated 4.3 will be removed in 6.0
1093+
* @param string $group Cache group name.
10961094
*
10971095
* @return void
10981096
*
10991097
* @since 1.6
11001098
*/
1101-
protected function cleanCache($group = null, $clientId = 0)
1099+
protected function cleanCache($group = null)
11021100
{
11031101
parent::cleanCache('com_modules');
11041102
}

0 commit comments

Comments
 (0)