Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
|
Next revision
Both sides next revision
|
reloaded:is_cantsafresh [2019/01/16 17:38] giancarlo |
reloaded:is_cantsafresh [2019/01/16 17:44] giancarlo |
</code> | </code> |
</WRAP> | </WRAP> |
* Clear cache on daily basis by HTTP API | |
<WRAP prewrap center> | |
<code> | |
crontab -l | |
| |
00 23 * * * /root/purge.sh >> /root/purge.log 2>&1 | |
</code> | |
</WRAP> | |
<WRAP prewrap center> | |
<code> | |
cat /root/purge.sh | |
| |
# <= 3.4 | |
#cd /opt/cantaloupe | |
#sudo -u cantaloupe java -Dcantaloupe.config=/opt/cantaloupe/cantaloupe.properties -Dcantaloupe.cache.purge -jar Cantaloupe-3.4.1.war | |
# | |
# >= 3.4 | |
wget -q --server-response --user=MyEndpointApiUsername --password=MyEndpointApiSecret --post-data='{ "verb" : "PurgeCache" }' --header=Content-Type:application/json http://localhost:8182/tasks | |
</code> | |
</WRAP> | |
* Startup command (replaced by start as service) | * Startup command (replaced by start as service) |
<WRAP prewrap center> | <WRAP prewrap center> |
</code> | </code> |
</WRAP> | </WRAP> |
| * Clear cache on daily basis by HTTP API (Optional) |
| <WRAP prewrap center> |
| <code> |
| crontab -l |
| |
| 00 23 * * * /root/purge.sh >> /root/purge.log 2>&1 |
| </code> |
| </WRAP> |
| <WRAP prewrap center> |
| <code> |
| cat /root/purge.sh |
| |
| # <= 3.4 |
| #cd /opt/cantaloupe |
| #sudo -u cantaloupe java -Dcantaloupe.config=/opt/cantaloupe/cantaloupe.properties -Dcantaloupe.cache.purge -jar Cantaloupe-3.4.1.war |
| # |
| # >= 3.4 |
| wget -q --server-response --user=MyEndpointApiUsername --password=MyEndpointApiSecret --post-data='{ "verb" : "PurgeCache" }' --header=Content-Type:application/json http://localhost:8182/tasks |
| </code> |
| </WRAP> |
| |
| |
| |