Skip to content

SYSTEM CACHE cache_js

Ulf Gebhardt edited this page Jul 25, 2017 · 2 revisions

SYSTEM\CACHE\cache_js

JS Cache Class provided by System for caching JS in the Database.

  • Class name: cache_js
  • Namespace: SYSTEM\CACHE

Constants

CACHE_JS

const CACHE_JS = 11

Methods

put

mixed SYSTEM\CACHE\cache_js::put(\SYSTEM\CACHE\sha1 $ident, integer $data)

Put Data into the Cache

  • Visibility: public
  • This method is static.

Arguments

  • $ident SYSTEM\CACHE\sha1 - <p>String Identifier for the cached Content</p>
  • $data integer - <p>Data to cache</p>

get

mixed SYSTEM\CACHE\cache_js::get(\SYSTEM\CACHE\sha1 $ident, boolean $header)

Get Data from Cache

  • Visibility: public
  • This method is static.

Arguments

  • $ident SYSTEM\CACHE\sha1 - <p>String Identifier for the cached Content</p>
  • $header boolean - <p>Send Header</p>

ident

\SYSTEM\CACHE\sha1 SYSTEM\CACHE\cache_js::ident(array $files)

Calculate Ident for a list of Files

  • Visibility: public
  • This method is static.

Arguments

  • $files array - <p>List of Files to be cached into one Cacheentry</p>

minify

\SYSTEM\CACHE\url SYSTEM\CACHE\cache_js::minify(array $files)

Minify JS files and calculate URL for it

  • Visibility: public
  • This method is static.

Arguments

  • $files array - <p>List of Files to be cached into one Cacheentry</p>
Clone this wiki locally