
Originally Posted by
bigdessert
ok, turning the caching off instantly fixed the problem for the one client having troubles. How can we make this permanent so that the next time cpanel updates it will not overwrite my setting?
Thank you for the feedback and information. As was suggested by Craigles, it is possible to automate customizations after an update using the built-in script hooks, such as preupcp and postupcp. For additional clarification please reference the following documentation:

Originally Posted by
Craigles
You could try adding those commands to /scripts/postupcp - that way any cpanel update will call that file after completing it's routines.
#!/bin/sh
cp -pv /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php.backup
perl -p -i -e 's/^\$rcmail_config.*enable_caching.*TRUE\;/\$rcmail_config\[''\'\''enable_caching''\'\'']\ \=\ FALSE\;/g' /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php
That's how I would do it anyway - i'm sure one of the cpanel tech's will correct me if I'm wrong

For purposes of automation in a custom script using the built-in hooks (e.g., "/scripts/postupcp"), I would revise the suggestion to the following example that I believe should work with minimal difficulty:
Code:
#!/bin/sh
/bin/echo
/bin/echo "Post script running..."
/bin/cp -fpv /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php.backup
/usr/bin/perl -p -i -e 's/^\$rcmail_config.*enable_caching.*TRUE\;/\$rcmail_config\[''\'\''enable_caching''\'\'']\ \=\ FALSE\;/g' /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php
/bin/echo "Post script completed..."
/bin/echo