Updated static cache
This commit is contained in:
parent
ee4831481a
commit
0aaadad668
|
@ -1,7 +1,7 @@
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
DirectoryIndex index.html yellow.php
|
DirectoryIndex index.html yellow.php
|
||||||
RewriteRule ^(cache|content|system)/ error [L]
|
RewriteRule ^(content|system)/ error [L]
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteRule ^ yellow.php [L]
|
RewriteRule ^ yellow.php [L]
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Command extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/command
|
// Command extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/command
|
||||||
|
|
||||||
class YellowCommand {
|
class YellowCommand {
|
||||||
const VERSION = "0.8.33";
|
const VERSION = "0.8.34";
|
||||||
public $yellow; // access to API
|
public $yellow; // access to API
|
||||||
public $files; // number of files
|
public $files; // number of files
|
||||||
public $links; // number of links
|
public $links; // number of links
|
||||||
|
@ -479,6 +479,7 @@ class YellowCommand {
|
||||||
$ok = false;
|
$ok = false;
|
||||||
if (!empty($path)) {
|
if (!empty($path)) {
|
||||||
if ($path==rtrim($this->yellow->system->get("commandStaticBuildDirectory"), "/")) $ok = true;
|
if ($path==rtrim($this->yellow->system->get("commandStaticBuildDirectory"), "/")) $ok = true;
|
||||||
|
if ($path==rtrim($this->yellow->system->get("coreCacheDirectory"), "/")) $ok = true;
|
||||||
if ($path==rtrim($this->yellow->system->get("coreTrashDirectory"), "/")) $ok = true;
|
if ($path==rtrim($this->yellow->system->get("coreTrashDirectory"), "/")) $ok = true;
|
||||||
if (is_file("$path/".$this->yellow->system->get("commandStaticDefaultFile"))) $ok = true;
|
if (is_file("$path/".$this->yellow->system->get("commandStaticDefaultFile"))) $ok = true;
|
||||||
if (is_file("$path/yellow.php")) $ok = false;
|
if (is_file("$path/yellow.php")) $ok = false;
|
||||||
|
@ -602,7 +603,6 @@ class YellowCommand {
|
||||||
$locations = array();
|
$locations = array();
|
||||||
$pathIgnore = "($path/|".
|
$pathIgnore = "($path/|".
|
||||||
$this->yellow->system->get("commandStaticBuildDirectory")."|".
|
$this->yellow->system->get("commandStaticBuildDirectory")."|".
|
||||||
$this->yellow->system->get("coreCacheDirectory")."|".
|
|
||||||
$this->yellow->system->get("coreContentDirectory")."|".
|
$this->yellow->system->get("coreContentDirectory")."|".
|
||||||
$this->yellow->system->get("coreMediaDirectory")."|".
|
$this->yellow->system->get("coreMediaDirectory")."|".
|
||||||
$this->yellow->system->get("coreSystemDirectory").")";
|
$this->yellow->system->get("coreSystemDirectory").")";
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Core extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/core
|
// Core extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/core
|
||||||
|
|
||||||
class YellowCore {
|
class YellowCore {
|
||||||
const VERSION = "0.8.64";
|
const VERSION = "0.8.65";
|
||||||
const RELEASE = "0.8.19";
|
const RELEASE = "0.8.19";
|
||||||
public $page; // current page
|
public $page; // current page
|
||||||
public $content; // content files
|
public $content; // content files
|
||||||
|
@ -47,11 +47,11 @@ class YellowCore {
|
||||||
$this->system->setDefault("coreDownloadDirectory", "media/downloads/");
|
$this->system->setDefault("coreDownloadDirectory", "media/downloads/");
|
||||||
$this->system->setDefault("coreImageDirectory", "media/images/");
|
$this->system->setDefault("coreImageDirectory", "media/images/");
|
||||||
$this->system->setDefault("coreSystemDirectory", "system/");
|
$this->system->setDefault("coreSystemDirectory", "system/");
|
||||||
|
$this->system->setDefault("coreCacheDirectory", "system/cache/");
|
||||||
$this->system->setDefault("coreExtensionDirectory", "system/extensions/");
|
$this->system->setDefault("coreExtensionDirectory", "system/extensions/");
|
||||||
$this->system->setDefault("coreLayoutDirectory", "system/layouts/");
|
$this->system->setDefault("coreLayoutDirectory", "system/layouts/");
|
||||||
$this->system->setDefault("coreThemeDirectory", "system/themes/");
|
$this->system->setDefault("coreThemeDirectory", "system/themes/");
|
||||||
$this->system->setDefault("coreTrashDirectory", "system/trash/");
|
$this->system->setDefault("coreTrashDirectory", "system/trash/");
|
||||||
$this->system->setDefault("coreCacheDirectory", "cache/");
|
|
||||||
$this->system->setDefault("coreContentDirectory", "content/");
|
$this->system->setDefault("coreContentDirectory", "content/");
|
||||||
$this->system->setDefault("coreContentRootDirectory", "default/");
|
$this->system->setDefault("coreContentRootDirectory", "default/");
|
||||||
$this->system->setDefault("coreContentHomeDirectory", "home/");
|
$this->system->setDefault("coreContentHomeDirectory", "home/");
|
||||||
|
|
|
@ -11,21 +11,21 @@ Tag: feature
|
||||||
system/extensions/bundle.php: bundle.php, create, update
|
system/extensions/bundle.php: bundle.php, create, update
|
||||||
|
|
||||||
Extension: Command
|
Extension: Command
|
||||||
Version: 0.8.33
|
Version: 0.8.34
|
||||||
Description: Command line of the website.
|
Description: Command line of the website.
|
||||||
HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/command
|
HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/command
|
||||||
DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/command.zip
|
DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/command.zip
|
||||||
Published: 2022-03-11 00:29:08
|
Published: 2022-04-12 17:26:01
|
||||||
Developer: Datenstrom
|
Developer: Datenstrom
|
||||||
Tag: feature
|
Tag: feature
|
||||||
system/extensions/command.php: command.php, create, update
|
system/extensions/command.php: command.php, create, update
|
||||||
|
|
||||||
Extension: Core
|
Extension: Core
|
||||||
Version: 0.8.64
|
Version: 0.8.65
|
||||||
Description: Core functionality of the website.
|
Description: Core functionality of the website.
|
||||||
HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/core
|
HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/core
|
||||||
DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/core.zip
|
DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/core.zip
|
||||||
Published: 2022-04-09 22:53:00
|
Published: 2022-04-12 17:24:28
|
||||||
Developer: Datenstrom
|
Developer: Datenstrom
|
||||||
Tag: feature
|
Tag: feature
|
||||||
system/extensions/core.php: core.php, create, update
|
system/extensions/core.php: core.php, create, update
|
||||||
|
|
Loading…
Reference in a new issue