Class ::xowiki::includelet::page_fragment_cache
::xowiki::includelet::page_fragment_cache
create ...
Class Relations
- class: ::xotcl::Class
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- superclass: ::xotcl::Object
![[i]](/resources/acs-subsite/ZoomIn16.gif)
::xotcl::Class create ::xowiki::includelet::page_fragment_cache \
-superclass ::xotcl::Object
Methods (to be applied on instances)
cache_includelet_data (scripted)
set data [next]
if {$data ne ""} {
::xowiki::cache set -partition_key ${:package_id} $key $data
}render (scripted)
set c [:info class]
set key "PF-${:package_id}-"
append key [expr {[$c aggregating] ? "agg" : "ind"}]
append key "-$c ${:__caller_parameters}"
if {[$c localized]} {append key -[:locale]}
if {[$c personalized]} {append key -[::xo::cc user_id]}
set HTML [::xowiki::cache eval -partition_key ${:package_id} $key next]
if {[catch {set data [::xowiki::cache get -partition_key ${:package_id} $key-data]}]} {
:cache_includelet_data $key-data
} else {
{*}$data
}
return $HTML