Title: get cache file path from php
Last modified: May 28, 2022

---

# get cache file path from php

 *  Resolved [Super Pel](https://wordpress.org/support/users/oiewhfufbhjsdfjbkfskjduhuyuy/)
 * (@oiewhfufbhjsdfjbkfskjduhuyuy)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/get-cache-file-path-from-php/)
 * hello, thanks for this awesome plugin,
 * I wanna ask if it possible to get cache file path of a post using php function/
   class?, i want to use it in my self-developed plugin.
 * for example
 * getWpFcCachePath($post_id);
 * expected return “/wp-content/cache/all/hello-world/index.html”
 * thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fget-cache-file-path-from-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/get-cache-file-path-from-php/#post-15687616)
 * Here is a example. you can replace the $_SERVER[“REQUEST_URI”] with slug.
 * `$GLOBALS["wp_fastest_cache"]->getWpContentDir("/cache/all/").$_SERVER["REQUEST_URI"];`

Viewing 1 replies (of 1 total)

The topic ‘get cache file path from php’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/get-cache-file-path-from-php/#post-15687616)
 * Status: resolved