Ticket #313 (closed defect: fixed)
Linktracking optimizations and other fixes
| Reported by: | vincent.fretin@… | Owned by: | BrianKoontz |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | core | Version: | 1.1.6.2 |
| Severity: | normal | Keywords: | optimization linktracking trunk-ported |
| Cc: |
Description (last modified by DotMG) (diff)
Here is a patch with optimizations a bug fixes for linktracking.
There is a bug with linktracking in Action()
We StartLinktracking() at the end of the function whatever we forceLinkTracking=0 or 1.
Thus links of the body and footer are tracked with the show handler.
We have to StartLinkTracking only when $_SESSION[linktracking"] was equal to 1 before we Stop it. Look at the patch for the fix.
Now, the WriteLinkTable() method use n INSERT queries.
We can only use one! (thanks to DotMG).
And I added a comparison to not link to the page itself.
example: "from_tag:FormattingRules to_tag:FormattingRules"
was recognize. Now it's not.
Fixed the IsWikiName regexp. It have to be the same that the one in the formatter!
in formatter/wakka.php:
- replace -{4,}|---| by -{3,}
- delete uneeded parentheses in the big regexp (and we use $thing=$thing[0]; in wakka2callback).
This improve performances.
Fixed at [175].
