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);

Related articles

Create a Post Cache by ID Using the Function Hook
Create a Post Cache by ID Using the Function Hook

This function is designed for manually creating page caches.

Placeholder Image
CDN Font Problem

Sometimes the fonts do not work after cdn integration because some browsers refuse to embed the fonts which come from…

Placeholder Image
Clear Cache After Posting Comment

The cache of the page is cleared automatically after the comment is approved of.

Ready to get started?

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