Home | Trees | Indices | Help |
|
---|
|
object --+ | PreviewCacheManager
is a class that manages the preview cache.
It's really the class that manages it, so don't bother creating instances.
The normal operation is that you pass the product you want a preview to getPreviewFor. If a cached preview already exists, you get back its content (the mime type must be taken from the products table).
If the file does not exist yet, some internal magic tries to come up with a preview and determines whether it should be cached, in which case it does so provided a preview has been generated successfully.
A cache file is touched when it is used, so you can clean up rarely used cache files by deleting all files in the preview cache older than some limit.
Instance Methods | |
Inherited from |
Class Methods | |||
|
|||
|
|||
|
|||
|
Class Variables | |
cachePath =
|
Properties | |
Inherited from |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |