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?
Running otrs.DeleteCache.pl from the Agent-Frontend
Moderator: crythias
-
- 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
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
And this is my GenericAgent:
Code: Select all
#!/bin/bash
/opt/otrs/bin/otrs.Console.pl Maint::Cache::Delete
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 ?
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 ?