asset_cache_item
An internal datum containing info on items in the asset cache. Mainly used to cache md5 info for speed.
Vars | |
ext | our file extension e.g. .png, .gif, etc |
---|---|
hash | md5() of the file this asset item represents. |
keep_local_name | TRUE for keeping local asset names when browse_rsc backend is used |
legacy | Should this file also be sent via the legacy browse_rsc system when cdn transports are enabled? |
name | the name of this asset item, becomes the key in SSassets.cache list |
namespace | Used by the cdn system to keep legacy css assets with their parent css file. (css files resolve urls relative to the css file, so the legacy system can't be used if the css file itself could go out over the cdn) |
namespace_parent | True if this is the parent css or html file for an asset's namespace |
resource | the file this asset represents |
Procs | |
New | Pass in a valid file_hash if you have one to save it from needing to do it again. Pass in a valid dmi file path string e.g. "icons/path/to/dmi_file.dmi" to make generating the hash less expensive |
Var Details
ext
our file extension e.g. .png, .gif, etc
hash
md5() of the file this asset item represents.
keep_local_name
TRUE for keeping local asset names when browse_rsc backend is used
legacy
Should this file also be sent via the legacy browse_rsc system when cdn transports are enabled?
name
the name of this asset item, becomes the key in SSassets.cache list
namespace
Used by the cdn system to keep legacy css assets with their parent css file. (css files resolve urls relative to the css file, so the legacy system can't be used if the css file itself could go out over the cdn)
namespace_parent
True if this is the parent css or html file for an asset's namespace
resource
the file this asset represents
Proc Details
New
Pass in a valid file_hash if you have one to save it from needing to do it again. Pass in a valid dmi file path string e.g. "icons/path/to/dmi_file.dmi" to make generating the hash less expensive