Running otrs.DeleteCache.pl from the Agent-Frontend

Moderator: crythias

Locked
lperoni
Znuny newbie
Posts: 11
Joined: 07 Mar 2017, 15:11
Znuny Version: OTRS5
Real Name: Lorenzo Peroni
Company: Cassini Consulting

Running otrs.DeleteCache.pl from the Agent-Frontend

Post by lperoni »

I've changed a setting in SysConfig that said "you have to execute otrs.DeleteCache.pl after activating or changing this config option". I checked: the setting didn't work just by changing it (just like the comment said).

However, I'm only an Admin without access to the webserver's file system, so I thought of a workaround to reset the cache from the agent frontend. My solution: I've deinstalled (and reinstalled) an OPM package; then the SysConfig setting worked as intended, so I assumed the cache was indeed deleted.

But I wonder: Is there a better way to delete the cache from the agent frontend?
root
Administrator
Posts: 4252
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Running otrs.DeleteCache.pl from the Agent-Frontend

Post by root »

I use a Generic Agent for this. You need a dummy ticket to make sure that the command is executed only once. I have a shellscript deletecache.sh with this content

Code: Select all

#!/bin/bash
/opt/otrs/bin/otrs.Console.pl Maint::Cache::Delete
And this is my GenericAgent:
2017-04-05 at 7.38 PM.jpg
You do not have the required permissions to view the files attached to this post.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Locked