Skip to content

Commit cce18c4

Browse files
committed
feat(core): remove entry counter cache
1 parent 1a01ee7 commit cce18c4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/Controllers/EntriesController.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ public function moveProcess(Request $request, Response $response)
522522
$data['parent_entry'] . '/' . $entry_id_current
523523
)) {
524524
$this->media_folders->rename('entries/' . $data['entry_id_path_current'], 'entries/' . $data['parent_entry'] . '/' . $entry_id_current);
525-
$this->clearEntryCounter($data['parent_entry']);
525+
526526
$this->flash->addMessage('success', __('admin_message_entry_moved'));
527527
} else {
528528
$this->flash->addMessage('error', __('admin_message_entry_was_not_moved'));
@@ -605,7 +605,6 @@ public function renameProcess(Request $request, Response $response) : Response
605605
$data['entry_parent'] . '/' . $name)
606606
) {
607607
$this->media_folders->rename('entries/' . $data['entry_path_current'], 'entries/' . $data['entry_parent'] . '/' . $this->slugify->slugify($data['name']));
608-
$this->clearEntryCounter($data['entry_path_current']);
609608
$this->flash->addMessage('success', __('admin_message_entry_renamed'));
610609
} else {
611610
$this->flash->addMessage('error', __('admin_message_entry_was_not_renamed'));
@@ -666,8 +665,6 @@ public function duplicateProcess(Request $request, Response $response) : Respons
666665
Filesystem::createDir(PATH['project'] . '/uploads' . '/entries/' . $id . '-duplicate-' . $random_date);
667666
}
668667

669-
$this->clearEntryCounter($parent_id);
670-
671668
$this->flash->addMessage('success', __('admin_message_entry_duplicated'));
672669

673670
return $response->withRedirect($this->router->pathFor('admin.entries.index') . '?id=' . $parent_id);

0 commit comments

Comments
 (0)