You are here: Foswiki>Tasks Web>Item11982 (04 Jul 2012, MichaelDaum)Edit Attach

Item11982: broken formfield cache

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: FORMFIELD
Branches: trunk
Reported By: MichaelDaum
Waiting For:
Last Change By: MichaelDaum
This code SMELL is spot on:

# SMELL: this local creation of a cache looks very suspicious. Suspect
# this may have been a one-off optimisation. It may be SNAFU with
# CGI accelerators, as there doesn't seem to be any way to expire the                                                                                                                                                                      
# cache.                                                                                                                                                                                                                                   
our %ffCache;  

The ffCache became a global variable during http://trac.foswiki.org/changeset/15063. Before, it was a private variable of the Foswiki::Render class, properly cleaned up in a finish handler. So the current stable branch is not affected by this bug.

-- MichaelDaum - 04 Jul 2012

 
Topic revision: r2 - 04 Jul 2012, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy