We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Bizarre CP Issue with Custom Addon

Development and Programming

Carl W Crawley's avatar
Carl W Crawley
136 posts
about 15 years ago
Carl W Crawley's avatar Carl W Crawley

Hey Support Guys, I’m hoping you can help me with this, because I’m tearing my hair out (well, if I had any I would!)

My addon, in some cases (two separate installs) when I load the dashboard of the module, it seems to be parsing my template content which contains my front-end tags. I know this because it executes an ‘update’ call to the DB when it’s called, which increments my count by one everytime.

Simply refreshing the Module dashboard continually increments the count by one each time.

If I remove the tags from my front-end template it stops doing it - but I’ve dumped the debug_backtrace() into a file, which confirms that it’s executing the Template Parsing.

I thought at first to try an if(REQ!=”CP”) conditional, but the value of REQ is ‘PAGE’ (I’ve output this to a file to test as well.

Could it be something to do with Page Caching or anything such as that? I’m at a loss now where to go next to diagnose.

Regards,

C.

[Mod Edit: Moved to the Development and Programming forum]

       
Carl W Crawley's avatar
Carl W Crawley
136 posts
about 15 years ago
Carl W Crawley's avatar Carl W Crawley

You can ignore/close this guys - I’ve found the cause…. and I feel slightly silly at the cause!

Cheers,

C.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.