Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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.

share|improve this question

closed as off topic by Su', paulmorriss Mar 1 '13 at 16:05

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

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;
}
share|improve this answer
    
I have had great results using local caching in nginx like this, not with PHPFox specifically but with a large site serving up static content. –  Josh Mountain Feb 28 '13 at 17:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.