ClearCache for modules
Posted: Tue Nov 29, 2011 10:36 pm
It has come to my attention that the ClearCache method of the ContentOperations class is public, and is documented as such.
The documentation issue has been corrected in svn for the next release of CMSMS. However in the interim, I am aware that one (or more) modules are using this method.
To all module authors using this method: Please stop doing so immediately, correct your modules and release new versions as soon as possible. You are actually hurting the performance of your modules and the performance of the users websites by using this method. Similarly there is a clear_cached_files() method of the CmsObject class that should not be used.
Using these methods clear ALL cached files from CMSMS. Including (but not limited to) cached menu templates, all smarty compiled templates, stylesheets processed through smarty, cached menu output for the admin theme, and cached files from other modules.
These methods will be marked as private in the future (or renamed). and SHOULD NOT BE USED by any module developer.
Thank you for your cooperation.
The documentation issue has been corrected in svn for the next release of CMSMS. However in the interim, I am aware that one (or more) modules are using this method.
To all module authors using this method: Please stop doing so immediately, correct your modules and release new versions as soon as possible. You are actually hurting the performance of your modules and the performance of the users websites by using this method. Similarly there is a clear_cached_files() method of the CmsObject class that should not be used.
Using these methods clear ALL cached files from CMSMS. Including (but not limited to) cached menu templates, all smarty compiled templates, stylesheets processed through smarty, cached menu output for the admin theme, and cached files from other modules.
These methods will be marked as private in the future (or renamed). and SHOULD NOT BE USED by any module developer.
Thank you for your cooperation.