Mobile app version of vmapp.org
Login or Join
Looi9037786

: PHPFox caching? I run a big phpfox website and I currently have server setup as follows: nginx (reverse proxy) --> Apache for dynamic content are there other ways to cache content with phpfox?

@Looi9037786

Posted in: #Cache #Nginx #Php #Webserver

I run a big phpfox website and I currently have server setup as follows:

nginx (reverse proxy) --> Apache for dynamic content

are there other ways to cache content with phpfox?

I can't use memcache it's a shared environment.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Looi9037786

--> Facebook Tweet Apache for dynamic content are there other ways to cache content with phpfox?">Reddit Digg LinkedIn -->

1 Comments

Sorted by latest first Latest Oldest Best

 

@Speyer207

phpFox has its own caching system that...

You can disable the caching in phpFox by using the following code in your template files:

<?php
define('PHPFOX_NO_TEMPLATE_CACHE', true);
define('PHPFOX_NO_CSS_CACHE', true);
define('PHPFOX_LIVE_TEMPLATES', true);
define('PHPFOX_CACHE_SKIP_DB_STORE', true);
?>


You can also use your own caching on top using Nginx virtual host configuration file:

location ~* .(js|css|png|jpg|jpeg|gif|ico)$ {
expires 1y;
log_not_found off;
}

10% popularity Vote Up Vote Down


--> Facebook Tweet Apache for dynamic content are there other ways to cache content with phpfox?">Reddit Digg LinkedIn -->

Back to top | Use Dark Theme