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.

CommentFileSizeAuthor
update_last_used_interval-1.patch2.34 KBc960657

Comments

wim leers’s picture

Subscribing.

revnoah’s picture

I have a related issue. Subscribing.

jsobiecki’s picture

@c960657

Thanks, it looks promising :)

jsobiecki’s picture

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