Topic on Project:Support desk

Maintenance script to fefresh all pages like empty edit?

7
Summary by Subfader

WONTFIX

Subfader (talkcontribs)

A template of mine adds pages to a category. I need to refresh thousands of pages as if I save them manually (empty edit).

Is there a maintenance script to do the trick?

I tried refreshLinks.php, rebuildall.php, purgeParserCache.php.

Ciencia Al Poder (talkcontribs)

Maybe purgeList.php with the --purge option, which updates the page_touched timestamp

Subfader (talkcontribs)

That script echoes nothing. Seems to be Squid only.

Ciencia Al Poder (talkcontribs)

Looking at the code, it calls $title->invalidateCache();, which updates page_touched for that page, which should force it to be reparsed the next time it's viewed

Subfader (talkcontribs)

Hmh ok, then it just the script just takes very long (cancelled after ~10 minutes).

But I need to refresh them all at once: Atm the category stats are wrong for the category added by the template.

Ciencia Al Poder (talkcontribs)

Oh, I haven't though about this before, but if he made the change, the refresh should be queued on the Manual:Job queue, so executing runJobs.php should fix it by refreshing only the pages that need to be updated. If not, something must be wrong here.

Subfader (talkcontribs)