VOOZH about

URL: https://www.wpfastestcache.com/tutorial/how-to-serve-cache-only-via-php/

⇱ How to Serve Cache Only via PHP


WP Fastest Cache
Blog Features Pricing FAQ Testimonials

How to Serve Cache Only via PHP

by admin

On servers using apache, the cache is served via htaccess thanks to the rewrite rule. It is the best method to serve cache.

However sometimes you may need to turn off the rewrite rule method for development. You can turn this feature off as below and have the cache serve only via php.

First, you need to add the following lines after <?php which exists at the top of wp-config.php file.

Second, you need to save the setings of WP Fastest Cache again.

define("WPFC_SERVE_ONLY_VIA_CACHE", true);
Sign Up for Exclusive Discount Emails!
Get our exclusive discount campaign news delivered straight to your mailbox.

Related articles

👁 Query Strings in URLs

Tutorial

Cache Url with QueryString

WP Fastest Cache does not create cache by default if a url contains a query string. Enable Cache for URLs…

👁 How to Move the Menu Item Under the Setting Menu

Tutorial

How to Move the Menu Item Under the Setting Menu

The menu item of WP Fastest Cache is added to the top level menu by default so you can reach…

👁 Placeholder Image

Tutorial

How to Remove the Footer Comment

By default, WP Fastest Cache adds an HTML comment in the page footer that indicates when and for how long…

Ready to get started?

Purchase your first license and see why 1,500,000+ websites globally around the world trust us.

Sign Up Now