Index: openacs-4/packages/xotcl-core/www/cache.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-core/www/cache.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/xotcl-core/www/cache.tcl 15 Jun 2015 19:34:27 -0000 1.7 +++ openacs-4/packages/xotcl-core/www/cache.tcl 7 Aug 2017 23:48:30 -0000 1.8 @@ -21,10 +21,6 @@ # Expires: now ns_set update [ns_conn outputheaders] "Expires" "now" -set output "" -set title "Show Caches" -set context [list "Cache Statistics"] - if { $flush ne "0" } { ns_cache flush $cache $flush ad_returnredirect [export_vars -base [ns_conn url] {cache}] @@ -39,9 +35,16 @@ ad_script_abort } -if { $cache == 0 } { +set title "Show Caches" +set context [list [list "./cache" cache]] - TableWidget t1 \ +set output "" + + +if { $cache == 0 } { + set context "" + + TableWidget create t1 \ -actions [subst { Action new -label Refresh -url [ad_conn url] -tooltip "Reload this page" }] \ @@ -67,15 +70,19 @@ } else { set item_list [ns_cache names $cache] set item_count [llength $item_list] - set href [export_vars -base . {cache {flushall 1}}] - append output "flush all items of [ns_quotehtml $cache]" - + set href [export_vars -base [ns_conn url] {cache {flushall 1}}] + append output "

Items in cache $cache ($item_count) with size [ns_cache_size $cache]

\n" append output "
- Filter: + flush all + Filter:
" + + + #append output "flush all items of [ns_quotehtml $cache]" + set entries "