Supporting Open Source Software for Education

rSmart

 

Share |

Turning on the ClearCacheJob in the 3.0 Kuali Financial System

Blogged by:

One of the batch jobs that was used often during development was the ClearCacheJob. However, just prior to 3.0 release it was removed from the default list of jobs. For some schools, it's still a nice job to have around.

Please note that this batch job is not perfect. Even though it would seem from the name that it should clear all the caches, in reality it does not and what it does clear out is sometimes inconsistent. So use it carefully and if all else fails, restart the application server.

To turn the ClearCacheJob back on, in your spring-sys.xml file make the following changes (either add the values to the lists, or even better, add this code directly to your own version of spring-sys.xml so you don't change any core code):

          <property name="jobNames">
                <list merge="true">
          <value>clearCacheJob</value>
                </list>
           </property>

   <bean id="clearCacheJob" parent="unscheduledJobDescriptor">
           <property name="steps">
                <list>
                      <ref bean="clearCacheStep" />
                </list>
           </property>
    </bean>

<bean id="clearCacheStep" class="org.kuali.kfs.sys.batch.ClearCacheStep" parent="step">
          <property name="cacheService">
               <ref bean="cacheService" />
          </property>
    </bean>
 
Tony Potts
CTO
rSmart

Post new comment

The content of this field is kept private and will not be shown publicly.