Title: Nagging warning
Last modified: November 3, 2025

---

# Nagging warning

 *  Resolved [Vincent Poirier](https://wordpress.org/support/users/magikweb/)
 * (@magikweb)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/nagging-warning/)
 * This warning:
 * Warning: Undefined array key “REQUEST_METHOD” in /home/customer/www/librairiewilsonlafleur.
   com/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.
   php on line 17
 * Shows up when crons are running through the Site Tools. We changed the code for
   this snippet to silence it, but we thought it could be useful to make you aware
   of it:
 * `if ( isset( $_SERVER['REQUEST_METHOD'] ) && $_SERVER['REQUEST_METHOD'] !== '
   GET' ) { //phpcs:ignore
    return;}
 * If there’s a follow-up or a better fix, let us know.

Viewing 1 replies (of 1 total)

 *  Plugin Support [Preslav Kenanov](https://wordpress.org/support/users/preslavkenanov/)
 * (@preslavkenanov)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/nagging-warning/#post-18705536)
 * Hello [@magikweb](https://wordpress.org/support/users/magikweb/),
 * Thank you for reporting this and for sharing the temporary adjustment you have
   made.
 * This issue has already been forwarded to the development team of the Speed Optimizer
   plugin. As such, we expect the issue to be addressed and resolved in the upcoming
   releases of the plugin. Your workaround is a valid temporary measure until the
   update becomes available.
 * Kind Regards,
   Preslav Kenanov

Viewing 1 replies (of 1 total)

The topic ‘Nagging warning’ is closed to new replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Preslav Kenanov](https://wordpress.org/support/users/preslavkenanov/)
 * Last activity: [7 months, 1 week ago](https://wordpress.org/support/topic/nagging-warning/#post-18705536)
 * Status: resolved