简体   繁体   English

在Magento中缩放FPC

[英]Zoom FPC in Magento

we use Zoom Full Page Cache from ezapps for Magento. 我们将ezapps中的“缩放全页缓存”用于Magento。 The code can be found here: 该代码可以在这里找到:

https://github.com/ezapps/Zoom-Magento-FPC 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. 现在,我们仅看到在使用多存储库的情况下,站点A已加载到站点B。但是它应该支持多存储库。

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']) 自我:: $ STORE = isset($ _ SERVER ['MAGE_RUN_CODE'])

The problem is that the ezzoom.php is the first line of PHP code in index.php 问题是ezzoom.php是index.php中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 您需要做的是根据域将IF ELSE代码放置在用于商店选择的位置上,将对ezzoom.php的调用放在索引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 然后环境变量被ezzoom知道

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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