clearing cache from script

0 views
Skip to first unread message

greavette

unread,
Mar 3, 2010, 11:56:32 PM3/3/10
to Simple Groupware
Hello,

This is such a great application that I can't stop wanting to learn
more about it!

I've been reading the documentation and I see it's recommended that we
clear our cache every month. Is there a way to clear this cache via a
script? Maybe a .bat file (for windows) or bash script for linux?

Thanks,

Charles.

Thomas

unread,
Mar 18, 2010, 10:40:26 PM3/18/10
to Simple Groupware
Hello,

you can use this URL:
http://<server>/<sgs-folder>/bin/index.php?username=<admin-username>&password=<password>&action_sys=clear_cms

Instead of clear_cms you can use other methods described in:
<sgs-dir>/bin/templates/asset_admin.tpl

Future releases will also allow to do this with the SOAP interface.

bye
Thomas

Charles McCrea

unread,
Mar 20, 2010, 1:30:58 PM3/20/10
to simple-g...@googlegroups.com
Thanks very much for the help Thomas.  How can I check that the cache was cleared.  Is there a file created for cache that I can look at to verify the cache has been cleared?

Thank You,

Charles.

--
You received this message because you are subscribed to the Google Groups "Simple Groupware" group.
To post to this group, send email to simple-g...@googlegroups.com.
To unsubscribe from this group, send email to simple-groupwa...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-groupware?hl=en.


Thomas

unread,
Mar 20, 2010, 8:52:01 PM3/20/10
to Simple Groupware
Hello,

you can check the HTTP return code 200 to verify that the script
completed successfully. But in most cases there should be no problem.
(example: curl -s -i "<URL>" | grep " 200 ")

Another option might be to clear the cache directly on the file system
(see <sgs-dir>/simple_cache/...).

bye
Thomas

> > simple-groupwa...@googlegroups.com<simple-groupware%2Bunsu...@googlegroups.com>

Reply all
Reply to author
Forward
0 new messages