Updated static cache

This commit is contained in:
markseu 2022-04-12 19:46:50 +02:00
parent ee4831481a
commit 0aaadad668
4 changed files with 9 additions and 9 deletions

View file

@ -1,7 +1,7 @@
<IfModule mod_rewrite.c>
RewriteEngine on
DirectoryIndex index.html yellow.php
RewriteRule ^(cache|content|system)/ error [L]
RewriteRule ^(content|system)/ error [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ yellow.php [L]

View file

@ -2,7 +2,7 @@
// Command extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/command
class YellowCommand {
const VERSION = "0.8.33";
const VERSION = "0.8.34";
public $yellow; // access to API
public $files; // number of files
public $links; // number of links
@ -479,6 +479,7 @@ class YellowCommand {
$ok = false;
if (!empty($path)) {
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 (is_file("$path/".$this->yellow->system->get("commandStaticDefaultFile"))) $ok = true;
if (is_file("$path/yellow.php")) $ok = false;
@ -602,7 +603,6 @@ class YellowCommand {
$locations = array();
$pathIgnore = "($path/|".
$this->yellow->system->get("commandStaticBuildDirectory")."|".
$this->yellow->system->get("coreCacheDirectory")."|".
$this->yellow->system->get("coreContentDirectory")."|".
$this->yellow->system->get("coreMediaDirectory")."|".
$this->yellow->system->get("coreSystemDirectory").")";

View file

@ -2,7 +2,7 @@
// Core extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/core
class YellowCore {
const VERSION = "0.8.64";
const VERSION = "0.8.65";
const RELEASE = "0.8.19";
public $page; // current page
public $content; // content files
@ -47,11 +47,11 @@ class YellowCore {
$this->system->setDefault("coreDownloadDirectory", "media/downloads/");
$this->system->setDefault("coreImageDirectory", "media/images/");
$this->system->setDefault("coreSystemDirectory", "system/");
$this->system->setDefault("coreCacheDirectory", "system/cache/");
$this->system->setDefault("coreExtensionDirectory", "system/extensions/");
$this->system->setDefault("coreLayoutDirectory", "system/layouts/");
$this->system->setDefault("coreThemeDirectory", "system/themes/");
$this->system->setDefault("coreTrashDirectory", "system/trash/");
$this->system->setDefault("coreCacheDirectory", "cache/");
$this->system->setDefault("coreContentDirectory", "content/");
$this->system->setDefault("coreContentRootDirectory", "default/");
$this->system->setDefault("coreContentHomeDirectory", "home/");

View file

@ -11,21 +11,21 @@ Tag: feature
system/extensions/bundle.php: bundle.php, create, update
Extension: Command
Version: 0.8.33
Version: 0.8.34
Description: Command line of the website.
HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/command
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
Tag: feature
system/extensions/command.php: command.php, create, update
Extension: Core
Version: 0.8.64
Version: 0.8.65
Description: Core functionality of the website.
HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/core
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
Tag: feature
system/extensions/core.php: core.php, create, update