User talk:Pinkgothic/DPL

"If your wiki encourages non-Template page transclusion, you'll want to run refreshLinks.php as a cron job (crontab -e, enter 0 * * * * /path/to/your/mediawiki/maintenance/refreshLinks.php for an hourly run). This is still a better solution than using the job queue for this purpose. Seems like better advice would be to just run the job queue via runJobs.php and disable running jobs from web interface. Also, wouldn't simply using the dplcache parameter accomplish everything you do here, but without the side effects of making the job queue not work for non-templates? Bawolff 21:12, 28 January 2011 (UTC)


 * Hi, Bawolff, sorry for the late reply, it didn't notify me of the change to the discussion page ! (Found out why; apparently I set my preferences not to ages ago. Epic fail! *harakiri*)
 * We use the cache parameter on all our DPLs, it doesn't make a difference to this scenario. mediawiki seems to bypass that setting entirely when it rebuilds the link from cache.
 * Regarding your  comment, that may actually be necessary.* The if-statement comes with the downside that the main link DPL generates is also lost (the not-(transclusion) one). :[ I'm still trying to figure out exactly why that is or how to fix it. I think that might be a case of the cached-results setting actually being a bad idea. v_v I'm going to see what I can find out there.
 * Point being, refreshLinks is unfortunately pointless. I'm not sure why that is, but it doesn't seem to do anything at all. :|
 * * The reason I didn't suggest, by the way, is because the jobs put into the Job Queue are largely null edits to begin with. My aim was to get rid of the unnecessary overhead.   on our wiki would run for about seven minutes and then be done. A   cron would... actually probably never terminate, since at least during mid-day we'd get in jobs faster than the jobs were finishing. Additionally, running other jobs, like "proper" transclusion (read as: templates) I still wanted to have web-triggered.
 * -pinkgothic 10:33, 10 February 2011 (UTC)