Skip to content

Commit

Permalink
Refine comments for get_stale_cache method in WP 404 cache class
Browse files Browse the repository at this point in the history
Improved the code comments for the get_stale_cache method in the class-full-page-cache-404.php file. The changes provide a more comprehensive explanation of the method's return values.
  • Loading branch information
attackant committed Mar 12, 2024
1 parent bd889f2 commit d45f77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/class-full-page-cache-404.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public static function get_cache(): mixed {
/**
* Get stale cache.
*
* @return mixed
* @return mixed The cache contents on success, false on failure to retrieve contents.
*/
public static function get_stale_cache(): mixed {
return wp_cache_get( self::STALE_CACHE_KEY, self::CACHE_GROUP );
Expand Down

0 comments on commit d45f77c

Please sign in to comment.