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

Placeholder Image
htaccess Gzip doesn’t work

Sometimes the files are not compressed although the gzip option has already been enabled.

Placeholder Image
To Clear Cache After Update

If a post or page is updated, the cache of post or page is cleared.

Placeholder Image
Exclude Urls by Calling the Function Hook

It is very simple to exclude any url from the cache. You can call the following function in a theme…

Ready to get started?

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