/** * Check cache is disabled or builder is active or in admin * * return boolean */ public static function is_cache_activate() { $active = is_user_logged_in() && current_user_can('manage_options') || themify_get('setting-page_builder_cache') || is_admin() ? true : (class_exists('Themify_Builder') ? Themify_Builder::is_front_builder_activate() : FALSE); return apply_filters('themify_builder_is_cache_active', $active); }