[Koha-bugs] [Bug 24272] Add a command line script to compare the syspref cache to the database
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Nov 5 20:12:51 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24272
Nick Clemens <nick at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #96467|0 |1
is obsolete| |
--- Comment #4 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 113135
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113135&action=edit
Bug 24272: add check_sysprefs_cache.pl
This script ensure that no sysprefs have been changed directly in the database
and/or
that the cache has not become corrupted. We have occasionally seen this happen
on production sites
To test:
1 - In the staff interface go to Administration
2 - Search for system preference 'IntranetUserJS'
3 - Add content to the syspref:
console.log('Hi!');
4 - On the command line launch mysql
sudo koha-mysql kohadev
5 - Alter the syspref directly
UPDATE systempreferences SET value = "console.log('Bye!');" WHERE variable
= 'IntranetUserJS';
6 - run the script
perl misc/maintenance/check_syspref_cache.pl
7 - You are warned about the altered system preference
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list