Logo
Explore Help
Register Sign In
Malin/acrib.es
1
0
Fork 0
You've already forked acrib.es
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
master
acrib.es/wp-content/plugins/wp-super-cache/rest/class.wp-super-cache-rest-get-stats.php

19 lines
421 B
PHP
Raw Permalink Normal View History

feat: caching, optimization, legal pages & footer - WP Super Cache enabled (PHP mode, gzip, Nginx compatible) - Autoptimize: CSS/HTML minification + deferred JS + Google Fonts optimization - Cookie Notice: GDPR/LOPD banner styled with brand colors (navy/burgundy/gold) - Legal pages: Aviso Legal, Política de Privacidad, Política de Cookies (ES) - MU-plugin: custom footer with legal links + Cloud Host credit - Footer: copyright, legal nav, Hosted & Maintained by Cloud Host (cloudhost.es) - Security: X-Frame-Options, X-Content-Type, Referrer-Policy headers - Security: XML-RPC disabled, REST user enumeration blocked - Performance: emoji scripts removed, post revisions limited to 3
2026-05-19 19:58:11 +02:00
<?php
class WP_Super_Cache_Rest_Get_Stats extends WP_REST_Controller {
/**
* Get the cache stats for the site.
*
* @param WP_REST_Request $request Full data about the request.
* @return WP_Error|WP_REST_Response
*/
public function callback( $request ) {
global $valid_nonce;
$_GET[ 'listfiles' ] = 1;
$valid_nonce = true;
return rest_ensure_response( wp_cache_regenerate_cache_file_stats() );
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 75ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API