Forum OpenACS Development: Re: Ecommerce under 5.9

Collapse
2: Re: Ecommerce under 5.9 (response to 1)
Posted by Gustaf Neumann on
The commerce package does not belong to the ~90 packages i am trying to maintain, ... and i am not Torben, but it seems to me that the following function is causing troubles. This should not have worked in earlier releases either, since util_memoize is called without variable substitution (curly braces). Furthermore, ad_parameter is deprecated since at least more than 12 years.

The following change should you help to bypass this problem

-g

ad_proc -private ec_cache_refresh_mem {} {
 } {
     return [util_memoize {ad_parameter -package_id [ec_id] CacheRefresh 600} 600]
}
should read as
ad_proc -private ec_cache_refresh_mem {} {
 } {
     return [util_memoize [list parameter::get -parameter CacheRefresh -package_id [ec_id] -default 600] 600]
}