Koha/t/db_dependent
Jared Camins-Esakov 4b65389d5e Bug 9005: Allow user to disable syspref cache
Because C4::Context uses an in-memory hash for caching sysprefs,
changing a syspref under a multi-threaded persistent environment
requires a server restart. This patch makes it possible disable
the syspref cache.

To test:
1) If you are using a multi-threaded persistent server (Starman, etc.),
   change a syspref and note that the effects of the syspref change may
   or may not be visible on any given request before applying this patch.
   You will need to choose a syspref with obvious effects that can be
   seen by simply refreshing the page. I recommend enabling or
   disabling additional languages in the OPAC, since you can refresh the
   page a dozen times and reasonably expect to see the new behavior you
   set only 1/n of the time.
2) Apply patch.
3) Add "C4::Context->disable_syspref_cache();" to your koha.psgi file
4) Repeat step 1, noting that you never see the stale behavior.
5) Run test at t/db_dependent/Context.t.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
All tests passed.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2012-11-08 12:41:10 -05:00
..
data/zebraexport bug 8649: create a temp directory for Zebra for C4::Search tests 2012-09-13 11:55:48 +02:00
Labels
LDAP
lib Bug 9001: Remove Zebraqueue_daemon 2012-11-06 16:41:11 -05:00
needs_user_input
Record
Reports
00-strict.t
Accounts.t
Acquisition.t Bug 5335 follow-up fix test 2012-09-28 11:19:56 +02:00
Amazon.t
Auth.t
Auth_with_cas.t
AuthoritiesMarc.t Bug 8890 - move two more db dependent tests 2012-10-24 17:52:42 +02:00
BackgroundJob.t
Barcodes.t
Biblio.t
Budgets.t
check_sysprefs.t
Circulation.t
Context.t Bug 9005: Allow user to disable syspref cache 2012-11-08 12:41:10 -05:00
Csv.t
database_dependent.pl
External_BakerTaylor.t
Heading_MARC21.t
HoldsQueue.t bug_5911: Transport Cost Matrix 2012-09-12 14:49:25 +02:00
Holidays.t Holidays Test Plan - DB Dependent 2012-10-01 16:44:02 +02:00
Items.t Bug 5327 : Fixing a typo in the test that was causing a false fail 2012-09-07 14:31:59 +02:00
Koha.t
Koha_Authority.t Bug 7417: Include see from references in bibliographic searches 2012-09-13 14:19:28 +02:00
Koha_template_plugin_KohaDates.t
Linker_FirstMatch.t
Log.t
Members.t
Ratings.t
Record.t
RecordProcessor_EmbedSeeFromHeadings.t Bug 7417: Include see from references in bibliographic searches 2012-09-13 14:19:28 +02:00
Reports.t
Reports_Guided.t
Reserves.t Bug 8728 : Adjust Reserves.t test for resdate and expdate and test setup/teardown 2012-10-02 18:09:27 +02:00
rollingloans.t
Search.t Bug 8211: Add exploded search options 2012-09-18 15:20:48 +02:00
Serials.t
Serials_2.t
Service.t
SIP_ILS.t
SQLHelper.t
SuggestionEngine_ExplodedTerms.t Bug 8846 conflict resolution: correct path 2012-11-01 08:41:30 -04:00
Suggestions.t
sysprefs.t
Tags.t Bug 7642 - fix the lost display of tag sizes 2012-10-01 17:38:27 +02:00
UploadedFile.t
VirtualShelves.t
VirtualShelves_Page.t
XISBN.t
zebra_config.pl bug 8649: create a temp directory for Zebra for C4::Search tests 2012-09-13 11:55:48 +02:00