Cataloger & CGFeedback, comments update problem

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: Cataloger & CGFeedback, comments update problem

Post by JohnnyB »

Bahh. I was scrubbed! :D
A UDT isn't defined as a "hack" since no core or module PHP files were modified (http://forum.cmsmadesimple.org/viewtopi ... 40&t=28132)
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
zaidcrowe
Forum Members
Forum Members
Posts: 109
Joined: Wed Jun 10, 2009 3:43 pm

Re: Cataloger & CGFeedback, comments update problem

Post by zaidcrowe »

True to both - i was just speculating as to why the original might have been deleted tbh!
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: Cataloger & CGFeedback, comments update problem

Post by Jo Morg »

Jo Morg wrote:
Tetsuo wrote:Try this to auto clear the cache when changes are made to Cataloger (or other) Content pages:

Extensions > User Defined Tags
Create a tag called "clear_cache":

Code: Select all

removed
Then go to Extensions > Event Manager > Find the ContentEditPost Event > add "clear_cache" as the last order event.

Now when the user makes a change to a page, the cache will be flushed.
IIRC JohnnyB posted a similar, if not the same, solution and was deleted by some moderator without even an explanation. IMO it's a perfectly legit solution, not a hack.
Just my two cents....
An explanation please? Are we to guess, why does this violates the rules???
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Cataloger & CGFeedback, comments update problem

Post by calguy1000 »

An explanation please? Are we to guess, why does this violates the rules???
A: The method mentioned is an internal (NOT FOR PUBLIC USE) method.
B: It effects the data of other modules and the core.
C: Could seriously impact site performance (we don't put stuff in caches for nothing)
D: It's a bad fix to a minor problem.

Frequently months after a user implements a half baked 'solutions' like this, others are re-diagnosing the secondary problems that they generate. or dealing with the complaints like 'this package is slow'. And it's not the dev teams responsibility (though it frequently falls on us) to clean this stuff up.

So therefore it's best to nip the problem in the bud before it starts.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: Cataloger & CGFeedback, comments update problem

Post by Jo Morg »

That's an explanation I can understand and easily accept, and even enforce, thanks.
I didn't look in the API documents for that particular function lately and didn't noticed it had been removed (I could almost swear I've seen it there at some point, but I might be wrong, and that was why I didn't see it as a hack).
Point taken and explanation appreciated.
Thanks again.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: Cataloger & CGFeedback, comments update problem

Post by JohnnyB »

Thank for the explanation Robert. :)

Personally, I'd rather be called out for posting half-baked, bad code than having something deleted punitively without explanation. Especially if that bad solution is already production.

A moderator's explanation immediately clears up any confusion while ensuring the forum's success as a valuable resource for the community.

Here's why:
1) Correcting the bad code and/or an explanation for the deletion would be documented in the forum thus increasing the forum's value.

2) A search will find similar posts suggesting UDTs using ClearCache(). If Jo Morg didn't ask why the posts were deleted, the next person wanting to know how to clear the cache using a UDT would learn how from other posts and implement the solution never knowing that it is not a supported method.

3) When we know "why" we can then rally behind it and help promote it.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Locked

Return to “Modules/Add-Ons”