• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to properly set up minify option

gldtn

Well-known member
#1
I was thinking of using the option to minify, but I'm a little lost on the direction and I wanted to make sure I'm doing it correctly before I apply..

Minify CSS
If true, CSS will be run through minify before being served.

So I checked the above option..

And applied the following cache mechanism into the config.php file:
Code:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array(
    'caching'                  => true,
    'automatic_serialization'  => true,
    'lifetime'                  => 3600,
    'cache_id_prefix'          => 'cm_'
);

$config['cache']['backend'] = 'File';
And I also wanted to use Fetch public templates as files

Did I miss something?

Thanks!
 

Slavik

XenForo moderator
Staff member
#2
I was thinking of using the option to minify, but I'm a little lost on the direction and I wanted to make sure I'm doing it correctly before I apply..

Minify CSS
If true, CSS will be run through minify before being served.

So I checked the above option..

And applied the following cache mechanism into the config.php file:
Code:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array(
    'caching'                  => true,
    'automatic_serialization'  => true,
    'lifetime'                  => 3600,
    'cache_id_prefix'          => 'cm_'
);

$config['cache']['backend'] = 'File';
And I also wanted to use Fetch public templates as files

Did I miss something?

Thanks!
That should be fine for you minified css.

Are you using an opcode cache? APC, eaccelerator etc? You will need one for the template caching.
 

gldtn

Well-known member
#3
Are you using an opcode cache? APC, eaccelerator etc? You will need one for the template caching.
I ran apc.php on my server and it said that it was not installed and I got this from my host provider:

I have taken this ticket from *****, as he is out of the office at this time. I
am looking over your server settings in regards to setting up APC on
host.*********.com. While it does appear that you are using the proper php
handlers to run APC without issue, it also appears that you are running Zend
Optimizer as well. You can't run Zend Optimizer and APC together, as they are
not compatable with each other.

If you have scripts that require Zend Optimizer, then I will not be able to
install APC without disabling Zend, and preventing these scripts from working
as expected. Let me know how you would like to proceed.

Regards,
:cautious: Is this true? right now I have the backend as set to 'file'
 

Slavik

XenForo moderator
Staff member
#5
I ran apc.php on my server and it said that it was not installed and I got this from my host provider:
:cautious: Is this true? right now I have the backend as set to 'file'
AFAIK no they arn't compatible, but also zend optimiser isnt actually an optimiser so to speak, doesnt it allow for the reading of encrypted php files?

I would remove zend optimiser (if you arnt using any files that require decryption) and install APC.
 

Slavik

XenForo moderator
Staff member
#6
Yup, thought so.

Despite the name, Zend Optimizer is not a code accelerator. Rather, is a free, closed source PHP extension by Zend Technologies that enables PHP 5.2 or earlier to run files encoded or obfuscated by Zend Guard.[3] Zend Optimizer 3.0 or greater allows to deobfuscate files and, Zend Optimizer 3.3 or greater allows to decode files
 

gldtn

Well-known member
#7
Have you tried eAccelerator?
No, I haven't looked into it yet, but I did run into this thread here: http://xenforo.com/community/threads/apc-or-eaccelerator.19029/.. will keep an eye on it to see what ppl say about it.

I would remove zend optimiser (if you arnt using any files that require decryption) and install APC.
Most of the stuff I'm running is Xenforo related and Wordpress, and I don't believe these scripts depends on that. So I'll have Zend Optimizer removed.

Thanks for the response guys!