• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: ClearCache for modules
PostPosted: Tue Nov 29, 2011 10:36 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8172
Location: Fernie British Columbia, Canada
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.

_________________
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: ClearCache for modules
PostPosted: Tue Nov 29, 2011 11:12 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Mon Feb 08, 2010 1:40 am
Posts: 55
Location: Romania
Name and shame!

But seriously, it would help us to know which ones you know about


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: ClearCache for modules
PostPosted: Tue Nov 29, 2011 11:14 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8172
Location: Fernie British Columbia, Canada
We did a documentation effort for the 1.9 series. And I tried (honestly) to keep all of my modifications up to date documentation wise. So 'best effort' was in there.

But. meh... nothing is perfect.

_________________
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: ClearCache for modules
PostPosted: Tue Nov 29, 2011 11:15 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8172
Location: Fernie British Columbia, Canada
As a professional, I know a couple of the modules that are relevant, but I will not name them. Sorry.

_________________
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: ClearCache for modules
PostPosted: Wed Nov 30, 2011 4:10 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Wed Apr 26, 2006 9:59 am
Posts: 44
calguy1000 \calguy1000:
To all module authors using this method: Please stop doing so immediately, correct your modules and release new versions as soon as possible.


I'm learning PHP/CMSMS ... please tell me what's the right method?


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: ClearCache for modules
PostPosted: Wed Nov 30, 2011 4:20 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8172
Location: Fernie British Columbia, Canada
There is no correct method. Modules should not be clearing the CMSMS cache at any time. This is an internal method that they were using incorrectly.

_________________
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: ClearCache for modules
PostPosted: Wed Nov 30, 2011 4:26 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Wed Apr 26, 2006 9:59 am
Posts: 44
Thx for your fast answer.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting