15 lines
590 B
PHP
15 lines
590 B
PHP
<?php
|
|
namespace SYSTEM\CACHE;
|
|
class cache_scss {
|
|
const CACHE_SCSS = 10;
|
|
public static function put($file,$data){
|
|
return \SYSTEM\CACHE\cache::put(self::CACHE_SCSS, self::ident($file), 'css', $data);}
|
|
public static function get($file,$header = false){
|
|
return \SYSTEM\CACHE\cache::get(self::CACHE_SCSS, self::ident($file),$header);}
|
|
public static function ident($file){
|
|
return sha1($file.';'.filemtime($file));
|
|
}
|
|
public static function url($file){
|
|
return './api.php?call=cache&id='.self::CACHE_SCSS.'&ident='.self::ident($file);
|
|
}
|
|
} |