简体   繁体   中英

Zoom FPC in Magento

we use Zoom Full Page Cache from ezapps for Magento. The code can be found here:

https://github.com/ezapps/Zoom-Magento-FPC

Although we see that development has been silent for a while we still enjoy this product. We only see now that working with a multistore that site A is loaded in site B. But it is supposed to support multistore.

Our question is: Has anyone come across this issue for a multisite and know how to fix it?

merci

Zoom looks for:

self::$STORE = isset($_SERVER['MAGE_RUN_CODE'])

The problem is that the ezzoom.php is the first line of PHP code in index.php

What yoou need to do is place the IF ELSE code for store selection based on domain ABOVE the call to ezzoom.php in index php

then it works fine

Now the code is like

$call to ezzoom.php on first line

OTHER CODE HERE

switch($_SERVER['HTTP_HOST']) {
case 'winkel1.nl':
Mage::run('winkel2', 'website');
break;
case 'winkel2.nl':
Mage::run('winkel2', 'website');
break;
default:
Mage::run();
break;
}

and this needs to be

switch($_SERVER['HTTP_HOST']) {
    case 'winkel1.nl':
    Mage::run('winkel2', 'website');
    break;
    case 'winkel2.nl':
    Mage::run('winkel2', 'website');
    break;
    default:
    Mage::run();
    break;
    }

$call to ezzoom.php on first line

OTHER CODE HERE

Then the environment variable is known by ezzoom

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM