Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-14 20:27:17

typeshige
Member
From: USA
Registered: 2005-08-11
Posts: 151
Website

Question about register_callback

I just learned about register_callbacks today and I wanted to use it on my project.

It will be used with zem_contact_reborn’s API.

My question is does defining many register_callbacks inefficient? I think only 2% or less of my visitors will ever use the contact form, but I think the callback will be registered on every page load. Is this a problem?

Should I make a plugin tag to register this callback only on the affected page?

Thanks for helping me learn about this powerful feature.

Offline

#2 2007-12-14 22:08:10

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Question about register_callback

Having a few callbacks will have little or no impact on performance.

Offline

#3 2007-12-16 00:56:51

typeshige
Member
From: USA
Registered: 2005-08-11
Posts: 151
Website

Re: Question about register_callback

Thanks! The whole textpattern system is pretty darn amazing.

I will go off and add my callback and not worry about slowdowns then. :)

Offline

Board footer

Powered by FluxBB