Download & Extend

Do not update {path_redirect.}last_used in every request

Project:Path redirect
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

For performance reasons one might not want to update {path_redirect.}last_used every time a redirect is hit. If automatic purging is disabled, one might not want to update it at all.

With this patch the field is only updated once per X seconds using a logic similar to the one in sess_write() in includes/session.inc.

AttachmentSizeStatusTest resultOperations
update_last_used_interval-1.patch2.34 KBIdlePASSED: [[SimpleTest]]: [MySQL] 123 pass(es).View details | Re-test

Comments

#1

Subscribing.

#2

I have a related issue. Subscribing.

#3

@c960657

Thanks, it looks promising :)

#4

This patch helped me. With update policy once on half year, it simple purges all path_redirect queries out of my slow logs :)

nobody click here