The DPL does not refresh unless i enter source-edit mode and resave.Others report same.
This has two sub-topics:
- How to refresh.
- When to refresh
.
How to refresh:
- Set the url parameter "?DPL_refresh=yes"
- Does not seem to work.
- Would require a redirect (which to me feels like a patch).
- Some global process: eg will it refresh on runJobs.php?
- What's the DPL3 php updater-function? in DynamicPageList.php, i see:
public function updateArticleByRule($title, $text, $rulesText) {
public function updateArticle($title, $text, $summary) {
public function updateTemplateCall(&$matchCount, $text, $template, $call, $parameter, $value, $afterParm, $optional) {
.
When to refresh:
- On Category edit. Ideally, refresh should happen every time any page in the referenced category is added/deleted/edited. Possible Hooks:
- Manual:Hooks/CategoryAfterPageAdded,
- Manual:Hooks/CategoryAfterPageRemoved
- Manual:Hooks/PageContentSaveComplete.+ a Category-Test (why isn't there a "CategoryAfterPageEdited"?)
- Extension:CategoryHook
- Some global process: eg will it refresh on runJobs.php?
- Every single time (and turn off caching). This is probably the simplest solution.