Skip to content

Commit

Permalink
fix: we know how long the cache is
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiulodro committed Aug 8, 2024
1 parent 74f3b02 commit ec5083d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-newspack-blocks-caching.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public static function maybe_cache_block( $block_html, $block_data ) {
'timestamp_generated' => time(),
'cached_content' => $block_html,
];
wp_cache_set( $cache_key, $cache_data, self::CACHE_GROUP, NEWSPACK_BLOCKS_CACHE_BLOCKS_TIME );
wp_cache_set( $cache_key, $cache_data, self::CACHE_GROUP, NEWSPACK_BLOCKS_CACHE_BLOCKS_TIME ); // phpcs:ignore WordPressVIPMinimum.Performance.LowExpiryCacheTime.CacheTimeUndetermined

self::debug_log( sprintf( 'Caching block: %s', $cache_key ) );

Expand Down

0 comments on commit ec5083d

Please sign in to comment.