• last updated 19 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- remove needless quotes from numeric comparisons

- quote pattern

- use numeric comparison operator for truth value comparisons

- use "lassign" instead of "foreach ... break" idiom

- use numeric comparison operator for truth value comparisons

- modernize tcl coding

- remove needless quotes from numeric comparison

- remove needless quotes from numeric comparisons

- use tcl 8.5 expand operator instead of "eval"

- simplify regular expression handling

- replace "foreach ... break" idiom by "lassign"

- remove unneeded expr from condition in "for" loop

    • -2
    • +2
    /openacs-4/packages/search/tcl/search-procs.tcl
    • -2
    • +2
    /openacs-4/packages/search/www/search.tcl
- replace "foreach ... break" idiom by "lassign"

- reimplementation of util_memoize cache for NaviServer. The original

implementation of the util-memoize functions was based on "manual expirations"

(every cached entry was a pair of value + timestamp). This is not needed

on naviserver, since NaviServer allows us to specify for every entry

directly an expire time, which is implemented internally. The new

has the advantage that (a) it is faster, (b) more secure (no race conditions),

(c) smaller memory footprint (not only storing the timestamp is not needed;

furthermore invalidation of timed-out entries happend in the old version only,

when the entry was fetched; in practice (openacs.org) many dead entries

where kept, the size wen down by 90%), (d) due to small number of entries

the search in the keys is much faster.

    • -113
    • +261
    /openacs-4/packages/acs-tcl/tcl/memoize-procs.tcl
- call ds_init for all types of concrete files for which handlers are registered

- fix 2 typos

- add missing commits for more light-weight developer support integration

- use variable ::acs::rootdir instead of function

- fetch screen name just when needed

- reduce verbosity

- revert escaped change

    • -240
    • +110
    /openacs-4/packages/acs-tcl/tcl/memoize-procs.tcl
- provide fallback values for ad_conn in cases, requests fail early, but templated results are provided

- add ds_init call

    • -111
    • +241
    /openacs-4/packages/acs-tcl/tcl/memoize-procs.tcl
- fix default for package parameter cache_max_age

- use $::acs::rootdir in documentation

- use $::acs::rootdir rather than [acs_root_dir] or [get_server_root]

- use variables rather than function to determine state of the developer support

- use $::acs::rootdir rather than [acs_root_dir] or [get_server_root]

- flatten nested "lindex" structures

- use $::acs::rootdir rather than [acs_root_dir] or [get_server_root]

- escape message keys

- use $::acs::rootdir rather than [acs_root_dir] or [get_server_root]

- use $::acs::rootdir rather than [acs_root_dir] or [get_server_root]

- use expand operator instead of eval

- simplify logic

- use ::acs::rootdir variable instead of call

- use $::acs::rootdir rather than [acs_root_dir] or [get_server_root]

- mark deprected functions as such in browser

- flatten nested "lindex" structures

- use $::acs::rootdir rather than [acs_root_dir] or [get_server_root]

    • -11
    • +11
    /openacs-4/packages/acs-tcl/tcl/apm-procs.tcl