Call wp_cache_set() with a group and then an expiration in wp_mime_type_icon(). fixes #22503. see #22186.
git-svn-id: http://core.svn.wordpress.org/trunk@22674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bd158c503f
commit
a1dba4a709
|
@ -4338,7 +4338,7 @@ function wp_mime_type_icon( $mime = 0 ) {
|
|||
closedir($dh);
|
||||
}
|
||||
}
|
||||
wp_cache_set('icon_files', $icon_files, 600);
|
||||
wp_cache_set( 'icon_files', $icon_files, 'default', 600 );
|
||||
}
|
||||
|
||||
// Icon basename - extension = MIME wildcard
|
||||
|
|
Loading…
Reference in New Issue