improve cache system

This commit is contained in:
isUnknown 2025-05-26 13:48:04 +02:00
parent ca0ca3b2a2
commit 1064432984
6 changed files with 39 additions and 26 deletions

View file

@ -1,7 +1,11 @@
<?php
// page.update:after
return function($newPage, $oldPage) {
if ($newPage->template() == 'project' || $newPage->parents()->findBy('template', 'project')) {
$newPage->getSteps(true);
}
// $project = $newPage->template() == 'project' ? $newPage : $newPage->parents()->findBy('template', 'project');
// if ($project) {
// $steps = $newPage->getRefreshedSteps(true);
// refreshProjectStepsCache($project, $steps);
// }
};