• last updated 2 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
acs::per_thread_cache: standardize per-thread caching

- added per-thread cache based on namespaced Tcl variables.

- use per-thread-cache on several occasions

- bump version number of acs-tcl to 5.10.0d34

  1. … 9 more files in changeset.
fix ugly typo

make minus sign optional again

fix typos

Make number checking more strict (allow just number literals, which are OK for Tcl and SQL)

    • -10
    • +16
    ./tcl/tcl-documentation-procs.tcl
move ad_get_host_node_map and security-locations-host-names from db_cache_pool to partitioned cache

  1. … 2 more files in changeset.
no need to provide separate hash method, which hinders actually for the hashkey partitioned cache

fix for issue #3437, extend regression test

move code pieces around to centralize concerns

improve wording

fix for issue #3438

fix for issue #3440: problem with SQL queries in db_transactions after some db_multirows

the was a problem with with db_handle management in complex setups,

where a db_multirow iterating over more than one tuple causes

some other queries in the transaction to fail. See as well

the new test case added to the regression test.

Many thanks to Keith Paskett for reporting and the good test case!

https://openacs.org/bugtracker/openacs/bug?format=table&bug_number=3440

    • -131
    • +152
    ./tcl/01-database-procs.tcl
    • -0
    • +102
    ./tcl/test/db-proc-test-procs.tcl
file db-proc-test-procs.tcl was initially added on branch oacs-5-10.

    • -0
    • +0
    ./tcl/test/db-proc-test-procs.tcl
update comments concering CSP "report-to" directive

improve documentation

provide compatibility function ns_dbquotelist, which is available in newer versions of NaviServer

fix broken dict

delete cut&pate error

added per-thread caching for "static" sitenotes. In case these will change (never saw a system where this happend), either a broadcast flush or a restart is needed.

extend icanuse cases

provide a clearer name for method (flush_pattern_in_all_partitions) and make it protected

add one more sample combination of traced commands

new method PartitionedCache->flush_all_pattern to iterate over all partiations to perform a glob-style deletion from the cache

whitespace and spelling changes

Added HashKeyPartitionedCache:

This is type of cache is like a "KeyPartitionedCache" but works as

well with strings as keys while the "KeyPartitionedCache" requires numeric

keys.

mark "acs_lookup_magic_object" explicit as deprecated,

use "acs_magic_object" instead (which is per-thread cached)

fix output from tcltrace procs

Remove ID size restriction in regexp

flush per_request_cache also when patterns are flushed

Increase the id length check by regexp in 'application_data_link::scan_for_links'