The SkunkWeb Developers Guide
Previous:
1 Filesystem Interface
Up:
2 Caching
Next:
3 The Component Cache
2 The Compile Cache
_getCompiledThing
(
name, srcModTime, legend, compileFunc, version, reconstituteFunc = None, unconstituteFunc = None
)
A generic way to get and cache compiled things from cache/disk/memory, returns the compiled thing.
compileFunc
takes the name and the source and returns compiled form
unconstituteFunc
takes the object and produces a marshal-friendly form
reconstituteFunc
takes the unmarshalled form and reconstitutes into the object
name
is the documentRoot relative path to the thing
srcModTime
the modification time of the source, if known, if not known, say
None
.
legend
the label to use in debug messages
version
marhallable thing that if the one in the compile cache doesn't match, we recompile
The SkunkWeb Developers Guide
Previous:
1 Filesystem Interface
Up:
2 Caching
Next:
3 The Component Cache
Release 3.3.