Skip to content

Commit

Permalink
cache time update to 2 days
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyMehedi committed Nov 6, 2024
1 parent 2564d19 commit a2d96a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Utils/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public static function get( array $args ): array {
return [];
}

public static function set( array $args, array $data ): bool {
return Transient::set( self::key( $args ), $data, MINUTE_IN_SECONDS * 5 );
public static function set( array $args, array $data, int $expiration = DAY_IN_SECONDS * 2 ): bool {
return Transient::set( self::key( $args ), $data, $expiration );
}

public static function clear( array $args ): bool {
Expand Down

0 comments on commit a2d96a5

Please sign in to comment.