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)
Cataloger & CGFeedback, comments update problem
Re: Cataloger & CGFeedback, comments update problem
Bahh. I was scrubbed!
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)
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.
--
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Re: Cataloger & CGFeedback, comments update problem
True to both - i was just speculating as to why the original might have been deleted tbh!
Re: Cataloger & CGFeedback, comments update problem
An explanation please? Are we to guess, why does this violates the rules???Jo Morg wrote: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.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":
Then go to Extensions > Event Manager > Find the ContentEditPost Event > add "clear_cache" as the last order event.Code: Select all
removed
Now when the user makes a change to a page, the cache will be flushed.
Just my two cents....
"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!
* 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

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Cataloger & CGFeedback, comments update problem
A: The method mentioned is an internal (NOT FOR PUBLIC USE) method.An explanation please? Are we to guess, why does this violates the rules???
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.
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.
Re: Cataloger & CGFeedback, comments update problem
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.
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!
* 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!
Re: Cataloger & CGFeedback, comments update problem
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.
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.
--
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--


