-
Notifications
You must be signed in to change notification settings - Fork 1
SYSTEM CACHE cache_js
Ulf Gebhardt edited this page Jul 25, 2017
·
2 revisions
JS Cache Class provided by System for caching JS in the Database.
- Class name: cache_js
- Namespace: SYSTEM\CACHE
const CACHE_JS = 11
mixed SYSTEM\CACHE\cache_js::put(\SYSTEM\CACHE\sha1 $ident, integer $data)
Put Data into the Cache
- Visibility: public
- This method is static.
- $ident SYSTEM\CACHE\sha1 - <p>String Identifier for the cached Content</p>
- $data integer - <p>Data to cache</p>
mixed SYSTEM\CACHE\cache_js::get(\SYSTEM\CACHE\sha1 $ident, boolean $header)
Get Data from Cache
- Visibility: public
- This method is static.
- $ident SYSTEM\CACHE\sha1 - <p>String Identifier for the cached Content</p>
- $header boolean - <p>Send Header</p>
\SYSTEM\CACHE\sha1 SYSTEM\CACHE\cache_js::ident(array $files)
Calculate Ident for a list of Files
- Visibility: public
- This method is static.
- $files array - <p>List of Files to be cached into one Cacheentry</p>
\SYSTEM\CACHE\url SYSTEM\CACHE\cache_js::minify(array $files)
Minify JS files and calculate URL for it
- Visibility: public
- This method is static.
- $files array - <p>List of Files to be cached into one Cacheentry</p>