Page 1 of 1

Which user permission controls cache clearing?

Posted: Fri Jan 20, 2017 4:37 pm
by Charles Butcher
Is there a group permissions setting that allows a user to clear the cache? This is CMSms 1.12.2, if it makes any difference.

I regularly need to clear the cache after adding new content, but my "Editor" settings don't allow this ("Permission denied" when I click the "Site maintenance" button). The "Admin" settings group works fine, but I need restricted settings for a new user.

I'm probably being stupid, but none of the available permissions options seem to refer to site maintenance or cache clearing. Any suggestions appreciated.

Re: Which user permission controls cache clearing?

Posted: Fri Jan 20, 2017 6:01 pm
by Rolf
Charles Butcher wrote:I regularly need to clear the cache after adding new content, but my "Editor" settings don't allow this ("Permission denied" when I click the "Site maintenance" button).
That you need to clear cache has a reason. Giving the editor permission to perform a clear cache doesn't solve the cause! Better start on that...

Re: Which user permission controls cache clearing?

Posted: Fri Jan 20, 2017 7:39 pm
by Charles Butcher
Rolf wrote:That you need to clear cache has a reason. Giving the editor permission to perform a clear cache doesn't solve the cause! Better start on that...
Thanks Rolf. Probably the reason is that I don't properly understand caching, both within CMSms and at the server level. I will do some homework.

Having to do this is indeed a pain. Normally it's only needed for new page content, but occasionally I believe new news items have failed to show up. I assume it's OK (or necessary) to clear the cache after changing templates or CSS.

So is it possible to assign this to an editor?

Re: Which user permission controls cache clearing?

Posted: Fri Jan 20, 2017 8:39 pm
by Rolf
System Information?

Re: Which user permission controls cache clearing?

Posted: Sat Jan 21, 2017 10:28 am
by Charles Butcher
----------------------------------------------
Cms Version: 1.12.2
Installed Modules:
CMSMailer: 5.2.14
FileManager: 1.5.2
MenuManager: 1.8.7
ModuleManager: 1.5.8
News: 2.15.2
Printing: 1.1.2
Search: 1.7.13
ThemeManager: 1.1.8
AceEditor: 1.0
FormBuilder: 0.6.4
SiteMapMadeSimple: 1.2.8
CGExtensions: 1.53.9
Archiver: 0.2
FormBuilder: 0.6.4
CGExtensions: 1.53.9
CGFeedMaker: 1.0.20
LightBox: 1.0.1
CGSimpleSmarty: 1.10
Showtime: 3.4
CMSPrinting: 1.0.5
MicroTiny: 1.2.9
CodeMirror: 3.0.0
CGGoogleMaps2: 1.1
AdminIPLock: 1.0
UsersGuide: 2.0
ExtendedTools: 1.3.3
RSSSimplePie: 1.0
JQueryTools: 1.3.9

Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 100000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:
phpversion: 5.4.42
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 2048
E_DEPRECATED: 8192
memory_limit: 128M
max_execution_time: 60
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 100M
upload_max_filesize: 100M
session_save_path: No check because OS path
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)

Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.6.21
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found

----------------------------------------------

Re: Which user permission controls cache clearing?

Posted: Sat Jan 21, 2017 11:56 am
by Rolf
Do you really use the ExtendedTools module?

Have you checked if Smarty / Page Caching is disabled in Global Settings?

Re: Which user permission controls cache clearing?

Posted: Sat Jan 21, 2017 12:15 pm
by Charles Butcher
Rolf wrote:Do you really use the ExtendedTools module?
Yes: it's required for RSSSimplePie, which I use to display tide times from https://www.tidetimes.org.uk. Not critical, though. If you think ExtendedTools might cause trouble I can remove it. And I don't think RSSSimplePie is supported in v2.x.
Rolf wrote:Have you checked if Smarty / Page Caching is disabled in Global Settings?
Smarty caching = yes, compilation check = no, cache module and UDT calls = always

Allow Browser to Cache Pages: = unchecked

Server Cache Settings:
Remove cache files that are older than the specified number of days: = 1

Re: Which user permission controls cache clearing?

Posted: Sat Jan 21, 2017 1:25 pm
by Rolf
Disable Smarty caching.

Re: Which user permission controls cache clearing?

Posted: Sat Jan 21, 2017 1:37 pm
by Charles Butcher
Much appreciated.

Re: Which user permission controls cache clearing?

Posted: Sun Jan 22, 2017 2:24 pm
by Rolf
No problem. Thanks for the coffee!