wc_object_cache_get_engine

wc_object_cache_get_engine

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.6.9.0

apply_filters('wc_object_cache_get_engine') is found 1 times:

  • /src/Caching/ObjectCache.php line 126
    			 * @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;
    	}
    
    	/**
    	 * Get the current cache prefix to use, generating one if none is in use yet.