Can we exclude Cron Files which has included wp-load file?

[ad_1]

Hi,
We are using multiple custom scripts to update products quantity etc by using cpanel cron jobs. but after installing the Redis server and activating the Redis Object Cache, All files get these errors.

PHP Fatal error:  Uncaught Error: Class 'Redis' not found in /home/.../public_html/wp-content/object-cache.php:659
Stack trace:
#0 /home/.../public_html/wp-content/object-cache.php(502): WP_Object_Cache->connect_using_phpredis(Array)
#1 /home/.../public_html/wp-content/object-cache.php(220): WP_Object_Cache->__construct(true)
#2 /home/.../public_html/wp-includes/load.php(729): wp_cache_init()
#3 /home/.../public_html/wp-settings.php(131): wp_start_object_cache()
#4 /home/.../public_html/wp-config.php(114): require_once('/home/...')
#5 /home/.../public_html/wp-load.php(50): require_once('/home/...')
#6 /home/.../public_html/crons/_qty_update.php(3): require_once('/home/...')
#7 {main}
  thrown in /home/.../public_html/wp-content/object-cache.php on line 659

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer