wc_object_cache_get_engine

wc_object_cache_get_engine

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('wc_object_cache_get_engine') is found 1 times:

  • /src/Caching/ObjectCache.php line 108
    			 * @param CacheEngine $engine The cache engine to be used by default.
    			 * @param ObjectCache $cache_instance The instance of ObjectCache that will use the cache engine.
    			 * @returns CacheEngine The actual cache engine that will be used.
    			 */
    			$this->cache_engine = apply_filters( 'wc_object_cache_get_engine', $engine, $this );
    		}
    		return $this->cache_engine;
    	}
    
    	/**
    	 * Add an object to the cache, or update an already cached object.