Skip to content

Commit

Permalink
Phpfastcache uses TMP_DIR instead of system tmp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogdani committed Mar 6, 2023
1 parent 785f6fb commit 840a1dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
require_once 'lib/Bootstrap.php';

// with PHP higher or equal 7 run Phpfastcache
if (version_compare(phpversion(), '7.0.0') > -1){
if (version_compare(phpversion(), '9.0.0') > -1){
require_once 'lib/vendor/phpfastcache/lib/Phpfastcache/Autoload/Autoload.php';

\Phpfastcache\CacheManager::setDefaultConfig(new \Phpfastcache\Config\Config([
"path" => sys_get_temp_dir(),
"path" => TMP_DIR,
"itemDetailedDate" => false
]));

Expand Down
1 change: 1 addition & 0 deletions version
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
5.9.2[] = "Phpfastcache uses TMP_DIR instead of system tmp dir"
5.9.1[] = "Template data are encoded to JSON forcedly as object to prevent unintended array resorting"
5.9.0[] = "sites/default links in database are automatically prefixed with html.link2('home')"
5.8.1[] = "Fixed bug with outHtml::searchForm outputting double slash"
Expand Down

0 comments on commit 840a1dc

Please sign in to comment.