add files
This commit is contained in:
14
inc/get_cached_alm.php
Normal file
14
inc/get_cached_alm.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
// Фильтр для изменения пути кеша
|
||||
add_filter('alm_cache_path', function() use ($alm_cache_dir) {
|
||||
|
||||
$alm_cache_dir = WP_CONTENT_DIR . '/cache/alm_custom_cache/';
|
||||
|
||||
if (!file_exists($alm_cache_dir)) {
|
||||
wp_mkdir_p($alm_cache_dir);
|
||||
|
||||
}
|
||||
|
||||
return $alm_cache_dir;
|
||||
});
|
||||
Reference in New Issue
Block a user