This commit is contained in:
2026-10-06 18:51:23 -06:00
parent 8424dacd03
commit e2c26b7f21
4223 changed files with 737986 additions and 53 deletions
@@ -0,0 +1,36 @@
<?php
namespace WP_Rocket\Engine\Common\Cache;
interface CacheInterface extends \WP_Rocket\Dependencies\Psr\SimpleCache\CacheInterface {
/**
* Generate the real URL.
*
* @param string $url original URL.
* @return string
*/
public function generate_url( string $url ): string;
/**
* Is the root path available.
*
* @return bool
*/
public function is_accessible(): bool;
/**
* Get root path from the cache.
*
* @return string
*/
public function get_root_path(): string;
/**
* Generate a path from the URL.
*
* @param string $url URL to change to a path.
* @return string
*/
public function generate_path( string $url ): string;
}