private function setup_cache_directory($configuration)
    {
        // Check if caching is enabled
        $cache_enabled = $this->read_config($configuration, 'cache.enabled', false);

        // Is caching enabled?
        if(!$cache_enabled)
        {
            // It is disabled, so skip it
            return false;
        }

        // Grab the cache location
        $cache_location = storage_path($this->read_config($configuration, 'cache.location', 'rss-feeds'));

        // Is the last character a slash?
        if(substr($cache_location, -1) != DIRECTORY_SEPARATOR)
        {
            // Add in the slash at the end
            $cache_location .= DIRECTORY_SEPARATOR;
        }

        // Check if the folder is available
        if(!file_exists($cache_location))
        {
            // It didn't, so make it
            mkdir($cache_location, 0777);

            // Also add in a .gitignore file
            file_put_contents($cache_location . '.gitignore', '!.gitignore' . PHP_EOL . '*');
        }

        return $cache_location;
    }