Here is an example of clearing the XMLUI cache using a script:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Restart_DSpace/14.04

*Hilton Gibson*
Stellenbosch University Library
*http://orcid.org/0000-0002-2992-208X
<http://orcid.org/0000-0002-2992-208X>*


On 11 August 2016 at 21:49, Hardy Pottinger <hardy.pottin...@gmail.com>
wrote:

> Hi, Jose, you mostly just need to delete the contents of the XMLUI
> "workDir", which, as it happens, is a path you can set in your XMLUI
> context. If you're using a Tomcat "context fragment" for XMLUI, you
> probably have something like this:
>
> <Context
>     docBase="/dspace/webapps/xmlui">
>
> Immediately after that, you can add a path to a "workDir":
>
>     workDir="/path/to/a/large/partition/dspaceWorkDir">
>
> This workDir is used for Cocoon caches, as well as temp space for uploads.
> We have a rather large partition set aside for this, to accomodate large
> uploads. More background and links to lots more material here:
>
> https://jira.duraspace.org/browse/DS-2359
>
> DS-2359 is still open, BTW, and in need of a volunteer. Hint hint. :-)
>
> Anyway, back to your question, here's a bash alias I have set up:
>
> alias dspace.clearcache='sudo rm /pathto/dspaceWorkDir/cache-di
> r/cocoon-ehcache.*'
>
> You could easily adapt that to a cron job if you prefer.
>
> --Hardy
>
> On Thu, Aug 11, 2016 at 1:46 PM, Jose Blanco <blan...@umich.edu> wrote:
>
>> can this also be done via some cronjob?
>>
>> Thank you!
>> Jose
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "DSpace Technical Support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to dspace-tech+unsubscr...@googlegroups.com.
>> To post to this group, send email to dspace-tech@googlegroups.com.
>> Visit this group at https://groups.google.com/group/dspace-tech.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to