Skip to content

Commit

Permalink
v 2.72.1
Browse files Browse the repository at this point in the history
Base file cache v 0.1.3 :
- handle cases with no expiration
  • Loading branch information
Darklg committed Mar 17, 2024
1 parent 06d1565 commit 61321e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions inc/WPUBaseFileCache/WPUBaseFileCache.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace wpubasefilecache_0_1_2;
namespace wpubasefilecache_0_1_3;

/*
Class Name: WPU Base File Cache
Description: A class to handle basic file cache
Version: 0.1.2
Version: 0.1.3
Author: Darklg
Author URI: https://darklg.me/
License: MIT License
Expand Down Expand Up @@ -51,7 +51,7 @@ public function get_cache($cache_id, $expiration = 3600) {
if (!file_exists($cached_file)) {
return false;
}
if (filemtime($cached_file) + $expiration < time()) {
if ($expiration && filemtime($cached_file) + $expiration < time()) {
return false;
}

Expand Down
6 changes: 3 additions & 3 deletions wpubaseplugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Plugin URI: https://github.com/WordPressUtilities/wpubaseplugin
Update URI: https://github.com/WordPressUtilities/wpubaseplugin
Description: A framework for a WordPress plugin
Version: 2.72.0
Version: 2.72.1
Author: Darklg
Author URI: https://darklg.me/
Text Domain: wpubaseplugin
Expand All @@ -20,7 +20,7 @@

class WPUBasePlugin {

public $version = '2.72.0';
public $version = '2.72.1';

private $utilities_classes = array(
'messages' => array(
Expand Down Expand Up @@ -60,7 +60,7 @@ class WPUBasePlugin {
'name' => 'WPUBaseToolbox'
),
'filecache' => array(
'namespace' => 'wpubasefilecache_0_1_2',
'namespace' => 'wpubasefilecache_0_1_3',
'name' => 'WPUBaseFileCache'
)
);
Expand Down

0 comments on commit 61321e1

Please sign in to comment.