$post_types, 'posts_per_page' => $posts_per_page, 'paged' => $paged, ); $query = new WP_Query($args); while ($query->have_posts()) { $query->the_post(); $url = trailingslashit(get_permalink()); $slug = str_replace(home_url(), '', $url); if (berqwp_is_slug_excludable($slug)) { continue; } $cache_directory = optifer_cache . '/html/'; $cache_key = md5($slug); $cache_file = $cache_directory . $cache_key . '.html'; if (file_exists($cache_file)) { $cached_pages++; $status = 'Completed'; if (bwp_is_partial_cache($slug) === true) { $status = 'Partial cache'; } $page_arr = [ 'url' => $url, 'status' => $status, 'last_modified' => filemtime($cache_file) ]; array_push($optimized_pages, $page_arr); } $total_pages++; } // Reset post data wp_reset_postdata(); // Increase the paged value to get the next set of posts $paged++; } while ($query->have_posts()); // $optimized_pages = [ // ["url" => "test url", "last_modified" => "1721741554"], // ["url" => "test url", "last_modified" => "1721741554"], // ["url" => "test url", "last_modified" => "1721741554"], // ["url" => "test url", "last_modified" => "1721741554"], // ["url" => "test url", "last_modified" => "1721741554"], // ["url" => "test url", "last_modified" => "1721741554"], // ["url" => "test url", "last_modified" => "1721741554"], // ["url" => "test url", "last_modified" => "1721741554"], // ["url" => "test url", "last_modified" => "1721741554"], // ["url" => "test url", "last_modified" => "1721741554"], // ["url" => "test url", "last_modified" => "1721741554"], // ["url" => "test url", "last_modified" => "1721741554"], // ["url" => "test url", "last_modified" => "1721741554"], // ["url" => "test url", "last_modified" => "1721741554"], // ["url" => "test url", "last_modified" => "1721741554"], // ]; wp_reset_postdata(); $cached_percentage = round((count($optimized_pages) / $total_pages) * 100, 2); ?>

Dashboard

Sandbox Optimization
'; } ?>

This page isn\'t cached yet'; } echo wp_kses_post(home_url() . $msg); ?>

Sandbox Optimization
'; } ?>

This page isn\'t cached yet'; } echo wp_kses_post(home_url() . $msg); ?>

% () of your pages are currently cached.

key_response->product_ref == 'Free Account' && bwp_cached_pages_count() >= 10) { bwp_dash_notification("You've reached the limit of 10 optimized pages for your free BerqWP account. Upgrade now to optimize unlimited pages and get the best performance for your entire site!", "warning"); } ?>
"; $row_html .= ""; $row_html .= ""; $row_html .= ""; $row_html .= ""; echo $row_html; } } ?>
Page URL Cache Status Last Optimized Date
"; $row_html .= $page['url']; $row_html .= ""; $row_html .= $page['status']; $row_html .= ""; $row_html .= date('Y-m-d H:i:s', $page['last_modified']); $row_html .= "

key_response->product_ref !== 'AppSumo Deal') { ?>

key_response->product_ref ); ?>

key_response->status ); ?>

key_response->product_ref !== 'AppSumo Deal' && $this->key_response->product_ref !== 'Free Account') { ?>

key_response->date_expiry ); ?>