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-
dir/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 <[email protected]> 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 [email protected].
> To post to this group, send email to [email protected].
> 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 [email protected].
To post to this group, send email to [email protected].
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