mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +01:00
Update style.php
and we will edit functions too
This commit is contained in:
@@ -20,7 +20,7 @@ class kleeja_style
|
|||||||
protected $loop = array();
|
protected $loop = array();
|
||||||
protected $reg = array('var' => '/([{]{1,2})+([A-Z0-9_\.]+)[}]{1,2}/i');
|
protected $reg = array('var' => '/([{]{1,2})+([A-Z0-9_\.]+)[}]{1,2}/i');
|
||||||
public $caching = true; #save templates as caches to not compiled a lot of times
|
public $caching = true; #save templates as caches to not compiled a lot of times
|
||||||
|
public $except=array('.htaccess', 'index.html', 'php.ini', 'web.config','kleeja_log.log');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* check if caching is not enabled and empty style cache files
|
* check if caching is not enabled and empty style cache files
|
||||||
@@ -29,6 +29,8 @@ class kleeja_style
|
|||||||
{
|
{
|
||||||
if(! $this->caching)
|
if(! $this->caching)
|
||||||
{
|
{
|
||||||
|
global $except;
|
||||||
|
$except=$this->except;
|
||||||
delete_cache(null, true);
|
delete_cache(null, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user