Skip to content

Commit

Permalink
Super cache - fix tempnam system directory warning (#38028)
Browse files Browse the repository at this point in the history
* Create cache directory first

* changelog
  • Loading branch information
donnchawp committed Jun 25, 2024
1 parent 618e479 commit 54de012
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Super Cache: create the cache directory before creating the config file
4 changes: 2 additions & 2 deletions projects/plugins/super-cache/wp-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ function wpsupercache_activate() {
wpsc_init();

if (
! wp_cache_verify_cache_dir() ||
! wpsc_check_advanced_cache() ||
! wp_cache_verify_config_file() ||
! wp_cache_verify_cache_dir()
! wp_cache_verify_config_file()
) {
$text = ob_get_contents();
ob_end_clean();
Expand Down

0 comments on commit 54de012

Please sign in to comment.