improve cache system
This commit is contained in:
parent
ca0ca3b2a2
commit
1064432984
6 changed files with 39 additions and 26 deletions
|
|
@ -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);
|
||||
// }
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue