Jump to content
JPresta.com

[Module] Page Cache - speed up your shop

Recommended Posts

Hello!

It seems that the cache is not working correct with module "product customization" at PS 1.5.6.2

http://addons.prestashop.com/en/front-office-features-prestashop-modules/8037-product-customization-47.html

The add to cart , when page speed is enabled is not working . Any chance to take a look?

( When page speed is disabled for products , it is working correctly ) . I have try to add the module to the "dynamics" but no luck so far

Thanks :)

 

It seems that the way that product customization module adds the product to cart is the problem.

Disabling part of the product customization module code ( the check  token part ) , solved my problem.

Now a customer can add the product to cart , with page cache module enabled at product page

I dont know if it is a correct way to fix , if someone knows more....

Share this post


Link to post
Share on other sites

Hello!

It seems that the cache is not working correct with module "product customization" at PS 1.5.6.2

http://addons.prestashop.com/en/front-office-features-prestashop-modules/8037-product-customization-47.html

The add to cart , when page speed is enabled is not working . Any chance to take a look?

( When page speed is disabled for products , it is working correctly ) . I have try to add the module to the "dynamics" but no luck so far

Thanks :)

Can you send me temporay access to your store with this form?

Share this post


Link to post
Share on other sites

It seems that the way that product customization module adds the product to cart is the problem.

Disabling part of the product customization module code ( the check  token part ) , solved my problem.

Now a customer can add the product to cart , with page cache module enabled at product page

I dont know if it is a correct way to fix , if someone knows more....

Well, the module should check token only if they are enabled on shop so I guess this is a good temporary fix; maybe you could tell the developper to test if tokens should be checked.

  • Like 1

Share this post


Link to post
Share on other sites

Well, the module should check token only if they are enabled on shop so I guess this is a good temporary fix; maybe you could tell the developper to test if tokens should be checked.

I will  contact the developer , thanks a lot 

Share this post


Link to post
Share on other sites

Hi, pagecache. I'm still in the testing phase of my new website, and just wanted to let you know that with the latest version (2.56) lazyload is no longer working (even the lazyload implementation from slider revolution) :).

Share this post


Link to post
Share on other sites

K3iUMZ1.png

 

how do I get rid of this showing on my website?

Go in configuration of PageCache and disable first option.

Share this post


Link to post
Share on other sites

Go in configuration of PageCache and disable first option.

 

ok well I clicked that and clicked "save and delete cache" but that now just makes my site not load up

Share this post


Link to post
Share on other sites

Hi,

 

I have sent you an email regarding compatibility of other module but got no reply...could you please check ?

Share this post


Link to post
Share on other sites

Hi,

 

I have sent you an email regarding compatibility of other module but got no reply...could you please check ?

I don't find it (I found one question but I don't know if it's from you and I answered to it). Can you repeat your question here?

Share this post


Link to post
Share on other sites

Hi,

 

I hope I am not reposting. I would like to ask about the ideal configuration of the default PS Cache (Disabled, Memcached or File System)?

 

Is there any other default settings I need to change in order to optimize the performance of Page Cahche module?

 

Thanks,

Share this post


Link to post
Share on other sites

I don't find it (I found one question but I don't know if it's from you and I answered to it). Can you repeat your question here?

Hello,

 

First of all really like your module, it helps me reduce all time out error I used to get.

 

But recently I purchased a module called pre-order and waiting list, basically this module provide me to check who has click the notify me when back in stock button, but the thing is it seems to conflict with page cache. Whenever the pre-order module is enabled, customer log in status will not be appear in product page, if they clicked back to home page, its back.

 

I have set all hook regarding the pre-order module to dynamic and still no results, any help?

 

Thanks

Share this post


Link to post
Share on other sites

Hello,

 

First of all really like your module, it helps me reduce all time out error I used to get.

 

But recently I purchased a module called pre-order and waiting list, basically this module provide me to check who has click the notify me when back in stock button, but the thing is it seems to conflict with page cache. Whenever the pre-order module is enabled, customer log in status will not be appear in product page, if they clicked back to home page, its back.

 

I have set all hook regarding the pre-order module to dynamic and still no results, any help?

 

Thanks

Contact me with this form and give me a temporary access to admin (access to PageCache configuration and Performance page) and I will have a look.

Share this post


Link to post
Share on other sites

I would like to ask about the ideal configuration of the default PS Cache (Disabled, Memcached or File System)?

Is there any other default settings I need to change in order to optimize the performance of Page Cache module?

Enable smarty cache, smart cache for CSS and JS, etc. All default tips for PS, no special ones for PageCache.

I advise you to read moy2010 tips.

Share this post


Link to post
Share on other sites

Using a Page Cache module is a must with Prestashop 1.5.6.2 and just as important is using a page redirect module for pages that are deleted or renamed. Unfortunately I purchased this redirect module, http://addons.prestashop.com/en/seo-prestashop-modules/11258-seo-404-301-product-and-category-delete-or-disable.html and it is not compatible with Page Cache.

 

All redirects work the first time you visit the redirected address, but not the second. What happens is something gets cached and on the 2nd visit to the page that has a redirect an error message appears advising that the page has moved. This doesn't happen if Page Cache is disabled.

 

Has anyone ran into this problem? Can anyone recommend a redirect module that is compatible with Page Cache?

Share this post


Link to post
Share on other sites

GREAT module, huge improvement in speed.

 

This module is a must buy for every PS shop owner.

 

I got perfect support from the developer JPresta.com too, thanks!

  • Like 2

Share this post


Link to post
Share on other sites

Hello Joe,

 

I have buy your module yesterday from jpresta.com and send you some info and files because I have a problem with customer.php override but still not heard. Your website seems also down, I can not use your module now because it conflict with my onepage checkout module.

Can you please check.

 

Thanks

 

Best regards

 

ysco..

Share this post


Link to post
Share on other sites

I have buy your module yesterday from jpresta.com and send you some info and files because I have a problem with customer.php override but still not heard. Your website seems also down, I can not use your module now because it conflict with my onepage checkout module.

Can you please check.

Yes, I saw it. I'm gonna look at it.

Site was down because of Prestashop cloud hosting :-( (faulty network storage device (NAS))

Share this post


Link to post
Share on other sites

For people using onepagecheckout module and having this error message

Incomplete installation, overrides are not correct, please reinstall module!

Onepagecheckout module is checking that this string 'VK##2' exists in files that it overrides.

This string is written in comments but last version of Prestashop is removing comments starting with //...
 
So, to resolve the problem, just add a comment in following files
  • override/controllers/front/ParentOrderController.php
  • override/controllers/front/AddressController.php
  • override/classes/Address.php
  • override/classes/Cart.php
  • override/classes/Customer.php
/* verification keys for onepagecheckout: VK##2 */
  • Like 2

Share this post


Link to post
Share on other sites

Hello Joe,

 

I still have some strange behaviour with your module on summary page and some other places.

I send you yesterday a short mp4 true your website contact form what is going on summary page.

Hoping for a solution ;)

 

 

Regards

 

ysco..

Share this post


Link to post
Share on other sites

In which directory on the server are the cache files stored exactly?

 

Thanks

Martin

In

<prestashop root dir>/cache/pagecache

Share this post


Link to post
Share on other sites

Hallo,

 

ich habe nun Ihr Modul installiert, jedoch läuft der Cache andauernd voll und ich bekomme hiernach mal wieder folgende Meldung:

 

Fatal error: Uncaught --> Smarty: unable to write file /homepages/37/d352456656/htdocs/clickandbuilds/PrestaShop/mycarhifishop/cache/smarty/compile/00/4a/a1/wrt554d242f9a7973_58508871 <-- thrown in /homepages/37/d352456656/htdocs/clickandbuilds/PrestaShop/mycarhifishop/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46

 

Bei 1&1 meinem Hoster sagte man mir dass mein Server voll sei : Disk Quota Exeeded, nach einigem Löschen von unnötigen Dateien lief der Shop auch wieder wunderbar, nach einer lief der Cache so voll dass der Fehler wieder erschien.

 

Gibt es hier gesonderte Einstellungen, dass auch der Cache im Prestashop Ordner gelöscht wird oder nur der Cache von dem Template?

 

Wäre Super wenn mir jemand helfen könnte denn alle 3 Stunden den Cache löschen ist etwas aufwendig.

 

Gerne auch per PN. hier würde ich dann die Serverdaten zur Verfügung stellen.

 

Vielen Dank schon mal !

 

 

Share this post


Link to post
Share on other sites

You can delete the cache using a cronjob. However deleting the files every 3 hours doesn't make sense at all using cache...

Share this post


Link to post
Share on other sites

Hallo vielen Dank für die Antwort,

 

kann ich den Smarty cache (cache,compile /img /tmp Ordner) auch automatisch alle Stunde oder 2 Stunden löschen lassen ?

 

Wenn ja wie funktioniert das?

 

Vielen Dank

Share this post


Link to post
Share on other sites

Please be aware, that any logged-in customers will be logged out, when you clear the cache.

Glitch or not, that's what I experienced.

So clearing the cache often will show this problem eventually.

Just wanted to report.

Regards.

Share this post


Link to post
Share on other sites

Hi,

 

After your last updates, i've noticed that some of my pages, including the checkout, quick view, and some others that needs javascript stops working regarding this problem:

 

PageCache cannot display dynamic modules: processDynamicModules is not defined

ReferenceError: processDynamicModules is not defined {stack: (...), message: "processDynamicModules is not defined"}message: "processDynamicModules is not defined"stack: (...)

get stack: function () { [native code] }

set stack: function () { [native code] }

 

Have you an idea how to solve that?

 

Thanks

Share this post


Link to post
Share on other sites

After your last updates, i've noticed that some of my pages, including the checkout, quick view, and some others that needs javascript stops working regarding this problem:

 

PageCache cannot display dynamic modules: processDynamicModules is not defined

ReferenceError: processDynamicModules is not defined {stack: (...), message: "processDynamicModules is not defined"}message: "processDynamicModules is not defined"stack: (...)

get stack: function () { [native code] }

set stack: function () { [native code] }

 

Have you an idea how to solve that?

I'm aware of this error but since it's catched (and printed in console for debug) this should not stop other javascripts.

Share this post


Link to post
Share on other sites

Please be aware, that any logged-in customers will be logged out, when you clear the cache.

Glitch or not, that's what I experienced.

So clearing the cache often will show this problem eventually.

Just wanted to report.

Regards.

Hmmm, this is weird. You mean clearing cache of PageCache or the cache of Prestashop (smarty)?

Share this post


Link to post
Share on other sites

Hmmm, this is weird. You mean clearing cache of PageCache or the cache of Prestashop (smarty)?

Pagecache cache :)

On 2 different sites for my clients. SSL enabled for all pages.

Easy to repreduce. Occurrence: always.

Edited by Spark111 (see edit history)

Share this post


Link to post
Share on other sites

Pagecache cache :)

On 2 different sites for my clients. SSL enabled for all pages.

Easy to repreduce. Occurrence: always.

Which version of PageCache? There was an issue before 2.60 when people were redirected from HTTP to HTTPS. Maybe the link you are using to test is HTTP and then you are redirected to HTTPS and lose the session. Can you confirm my guess?

Share this post


Link to post
Share on other sites

Which version of PageCache? There was an issue before 2.60 when people were redirected from HTTP to HTTPS. Maybe the link you are using to test is HTTP and then you are redirected to HTTPS and lose the session. Can you confirm my guess?

2.59.

No, I can't comfirm. Checking in FF with "Live http headers" add-on. The urls are not redirected.

 

I'll give you both shops by PM.

Share this post


Link to post
Share on other sites

2.59.

No, I can't comfirm. Checking in FF with "Live http headers" add-on. The urls are not redirected.

 

I'll give you both shops by PM.

Hi Joe,

 

Thanks for the fix privately sent to us.

This seems to do the trick.

 

Regards,

  • Like 2

Share this post


Link to post
Share on other sites

Could there be a problem with the "first, display an empty box" function? I selected this option for some values, but on the page these modules still "pop in" after loading (i.e. there are no empty boxes shown first).

Share this post


Link to post
Share on other sites

Could there be a problem with the "first, display an empty box" function? I selected this option for some values, but on the page these modules still "pop in" after loading (i.e. there are no empty boxes shown first).

This option allow you to display nothing (skip the hook) in the cached page. It will only display when module will be refreshed dynamically. 

Share this post


Link to post
Share on other sites

This option allow you to display nothing (skip the hook) in the cached page. It will only display when module will be refreshed dynamically. 

 

I'm not sure I understand this; how is this different from default behaviour? Both options (on or off) result in the same effect. Is there any way to avoid the jumping in of the dynamic parts?

Share this post


Link to post
Share on other sites

 

For people using onepagecheckout module and having this error message

Incomplete installation, overrides are not correct, please reinstall module!

Onepagecheckout module is checking that this string 'VK##2' exists in files that it overrides.

This string is written in comments but last version of Prestashop is removing comments starting with //...
 
So, to resolve the problem, just add a comment in following files
  • override/controllers/front/ParentOrderController.php
  • override/controllers/front/AddressController.php
  • override/classes/Address.php
  • override/classes/Cart.php
  • override/classes/Customer.php
/* verification keys for onepagecheckout: VK##2 */

 

a mistake as it was and has remained

Share this post


Link to post
Share on other sites

I'm not sure I understand this; how is this different from default behaviour? Both options (on or off) result in the same effect. Is there any way to avoid the jumping in of the dynamic parts?

First, the page is displayed for unconnected people. If you check the checkbox, the module won't be displayed even if it should display something for unconnected people. 

Once the page is displayed a dynamic ajax request is sent to display dynamic modules/parts. The "jumping" (defered display) cannot be avoid.

Share this post


Link to post
Share on other sites

How can we upgrade the module?

It can be done in one clic if you bougth through the addons site and connected your admin to addons, or just install the upgrade as a new module, this will upgrade the current one.

  • Like 1

Share this post


Link to post
Share on other sites
I bought this module a few days ago. Basically I'm satisfied with it. From start I have a javascript error on the page which blocked the module from working correctly. 

"Uncaught TypeError: (intermediate value)(intermediate value)(intermediate value)(intermediate value)(intermediate value)(...) is not a function"

The root of the problem was that in this file /pagecache\views\templates\hook\pagecache.tpl you declared a variable but the end is not closed with a semicolon "};

</script>". I have some extra javascript definition in the footer.tpl, probably they came after your definition on rendered page, this is the cause the semicolon is needed. Please add this fix to you next release.

Share this post


Link to post
Share on other sites

I bought this module a few days ago. Basically I'm satisfied with it. From start I have a javascript error on the page which blocked the module from working correctly. 

"Uncaught TypeError: (intermediate value)(intermediate value)(intermediate value)(intermediate value)(intermediate value)(...) is not a function"
The root of the problem was that in this file /pagecache\views\templates\hook\pagecache.tpl you declared a variable but the end is not closed with a semicolon "};
</script>". I have some extra javascript definition in the footer.tpl, probably they came after your definition on rendered page, this is the cause the semicolon is needed. Please add this fix to you next release.

Hmm where is it exactly? I think your message has been truncated because of javascript tag.

Share this post


Link to post
Share on other sites

Hmm where is it exactly? I think your message has been truncated because of javascript tag.

No problem. If you open this file /pagecache\views\templates\hook\pagecache.tpl, the line number 46 should be "};" instead of "}" the semicolon is the difference. This closes the declaration of the processDynamicModules variable.

  • Like 1

Share this post


Link to post
Share on other sites

No problem. If you open this file /pagecache\views\templates\hook\pagecache.tpl, the line number 46 should be "};" instead of "}" the semicolon is the difference. This closes the declaration of the processDynamicModules variable.

Thank you for the feed back, will be fixed in next release.

Share this post


Link to post
Share on other sites
Hello,

 

 

I installed module but when i put on Page Cache then jquery not include to source and i lose tree category menu.

 

Very not integrate module when someone other module override Dispather.php then all explode!!

 

Regards

Daniel

Share this post


Link to post
Share on other sites
I installed module but when i put on Page Cache then jquery not include to source and i lose tree category menu.
 
Very not integrate module when someone other module override Dispather.php then all explode!!

I saw your question on support, I'm working on it and keep you posted.

Share this post


Link to post
Share on other sites
Hi,

someone has experienced of receiving a generic "fatal error" message when the module is enabled ?

I have used the module without any problem for a long time but since yesterday if i try to enable the module i receive this message and the site does not work

Thx

Share this post


Link to post
Share on other sites

Error 500 at all pages on PS 1.6.1 , nginx 1.6  ( Test server :)   ).
The module author usually fixes everything very fast  :)

Share this post


Link to post
Share on other sites

Error 500 at all pages on PS 1.6.1 , nginx 1.6  ( Test server :)   ).

The module author usually fixes everything very fast  :)

Parse error: syntax error, unexpected '{', expecting function (T_FUNCTION) in /var/www/clients/client0/web2/web/override/classes/Product.php on line 222

 

Temporary solved by renaming to  /override/classes/Product1.php 

Share this post


Link to post
Share on other sites

someone has experienced of receiving a generic "fatal error" message when the module is enabled ?

I have used the module without any problem for a long time but since yesterday if i try to enable the module i receive this message and the site does not work

Can you enable DEV mode in /config/define.inc.php to have a full error message? What PS version do you have?

Share this post


Link to post
Share on other sites

Parse error: syntax error, unexpected '{', expecting function (T_FUNCTION) in /var/www/clients/client0/web2/web/override/classes/Product.php on line 222

 

Temporary solved by renaming to  /override/classes/Product1.php 

This is weird because I tested over the 1.6.1. Can you send me the /override/classes/Product.php file?

Share this post


Link to post
Share on other sites

Hello,

I am having a problem with the Google Remarketing script with your module.

I am using this code in the footer.tpl:


<!-- Remarketing dinámico de Adwords -->
<script type="text/javascript">
var google_tag_params = {
{if $page_name == 'index'}
ecomm_pagetype: 'home'
{elseif $page_name == 'search'}
ecomm_pagetype: 'searchresults'
{elseif $page_name == 'category'}
ecomm_pagetype: 'category'
{elseif $page_name == 'product'}
ecomm_pagetype: 'product',
ecomm_prodid: '{$product->id|intval}',
ecomm_totalvalue: '{$product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)}'
{else}
ecomm_pagetype: 'other'
{/if}
};
</script>

{literal}
 
<!-- Google Code para etiquetas de remarketing -->
<!--------------------------------------------------
Es posible que las etiquetas de remarketing todavía no estén asociadas a la información de identificación personal o que estén en páginas relacionadas con las categorías delicadas. Para obtener más información e instrucciones sobre cómo configurar la etiqueta, consulte http://google.com/ads/remarketingsetup.
--------------------------------------------------->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = XXXXXX;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/XXXXXX/?value=0&;guid=ON&;script=0"/>
</div>
</noscript> 
{/literal}

I am caching category pages, but the Google tag assistant is telling me: No HTTP response detected

The code works correctly in product pages (that I am not caching).

If I turn the caching of category pages off, the code works perfect.

 

I would like to be able to use the Remarking code in the footer, or anywhere to make it work wile category pages are cached.

 

How can I do this?

Thanks!

Share this post


Link to post
Share on other sites

Hello does your module work with 1.6.1? I just did the update and it doesn't seem to do anything. Page seems to load slow and if I activate statistics at the end of the site it doesn't show up!?

Share this post


Link to post
Share on other sites

Prestashop 1.6.1.0 tried to install Page cache v2.63. The site is now a white page and i see this error:

 

PHP Parse error:  syntax error, unexpected '{', expecting function (T_FUNCTION) in /home/uvapeseattle/public_html/override/classes/Customer.php on line 40

 

Help please

 

I modified the php and removed the bad {'s there were a couple.  All good. Cheers!

Edited by Ms E (see edit history)

Share this post


Link to post
Share on other sites

Hello,

 

What are the differences between standard cache in prestashop and Page Cache module.

And how many times faster will load pages on my website when I will use this instead standard cache?

 

Thank you in advance for answers.

 

Best Regards,

Paweł

Share this post


Link to post
Share on other sites

Hi! I Install pagecache on prestashop 1.6.1.0 and now my store gives me this error: Parse error: syntax error, unexpected '{', expecting function (T_FUNCTION) in /home/mister/public_html/override/classes/Customer.php on line 88 

 

thanx everyone to help me

 

<?php

 
class Customer extends CustomerCore
{
    /*
* module: onepagecheckout
* date: 2015-07-29 12:58:01
* version: 2.3.8
*/
private static function isOpcModuleActive()
    {
        $opc_mod_script = _PS_MODULE_DIR_ . 'onepagecheckout/onepagecheckout.php';
        if (file_exists($opc_mod_script)) {
            require_once($opc_mod_script);
            $opc_mod = new OnePageCheckout();
            return $opc_mod->active;
        } else {
            return 0;
        }
    }
    static /*
* module: onepagecheckout
* date: 2015-07-29 12:58:01
* version: 2.3.8
*/
public function customerExists($email, $return_id = false, $ignoreGuest = true)
    {
        if (!self::isOpcModuleActive())
            return parent::customerExists($email, $return_id, $ignoreGuest);
        if (!Validate::isEmail($email))
            die (Tools::displayError());
        if (Tools::isSubmit('submitAccount')) {
            return false;
        } else {
            return parent::customerExists($email, $return_id, $ignoreGuest);
        }
    }
    static /*
* module: onepagecheckout
* date: 2015-07-29 12:58:01
* version: 2.3.8
*/
public function getLastTwoCustomerAddressIds($id_customer, $active = true)
    {
        if ($id_customer == 0)
            return 0;
        $query = '
                        SELECT `id_address`
                        FROM `' . _DB_PREFIX_ . 'address`
                        WHERE `id_customer` = ' . (int)($id_customer) . ' AND `deleted` = 0' . ($active ? ' AND `active` = 1' : '') .
            ' ORDER BY id_address DESC limit 2';
        $result = Db::getInstance()->ExecuteS($query);
        $ret    = array();
        foreach ($result AS $k => $address) {
            $ret[] = ($address["id_address"]);
        }
        return $ret;
    }
    static /*
* module: onepagecheckout
* date: 2015-07-29 12:58:01
* version: 2.3.8
*/
public function getFirstCustomerId($active = true)
    {
        $query = '
                        SELECT `id_customer`
                        FROM `' . _DB_PREFIX_ . 'customer`
                        WHERE `deleted` = 0' . ($active ? ' AND `active` = 1' : '') .
            ' ORDER BY id_customer ASC';
        $x = Db::getInstance()->getValue($query);
        return $x;
    }
    /*
* module: onepagecheckout
* date: 2015-07-29 12:58:01
* version: 2.3.8
*/
public static function customerHasAddress($id_customer, $id_address)
    {
        if (!self::isOpcModuleActive())
            return parent::customerHasAddress($id_customer, $id_address);
        if (!Tools::isSubmit('delete'))
            return true;
        else
            return parent::customerHasAddress($id_customer, $id_address);
    }
{    -----------------line 88-----------------
$context = Context::getContext();
 
if (!$id_customer
&& isset($context->cookie)
&& isset($context->cookie->pc_group_default)) {
$id_group = (int) $context->cookie->pc_group_default;
if ($id_group > 0) {
return $context->cookie->pc_group_default;
}
}
return parent::getDefaultGroupId($id_customer);
}
 
/*
* module: pagecache
* date: 2015-07-29 17:51:42
* version: 2.63
*/
public static function getGroupsStatic($id_customer)
{
$context = Context::getContext();
if (!$id_customer
&& isset($context->cookie)
&& isset($context->cookie->pc_groups)) {
$groups = explode(',', $context->cookie->pc_groups);
if ($groups !== FALSE && count($groups) > 0) {
return $groups;
}
}
return parent::getGroupsStatic($id_customer);
}
/*
* module: pagecache
* date: 2015-07-29 17:51:42
* version: 2.63
*/
public function isLogged($with_guest = false)
{
$context = Context::getContext();
if (strcmp($this->getCallerMethod(),'getHookModuleExecList') === 0) {
if ((!isset($context->customer) || !$context->customer->id)
&& isset($context->cookie)
&& isset($context->cookie->pc_is_logged)) {
 
if ($with_guest) {
return $context->cookie->pc_is_logged;
}
else {
return $context->cookie->pc_is_logged_guest;
}
}
}
return parent::isLogged($with_guest);
}
 
/*
* module: pagecache
* date: 2015-07-29 17:51:42
* version: 2.63
*/
private function getCallerMethod()
{
$traces = debug_backtrace();
if (isset($traces[2])) {
return $traces[2]['function'];
}
return null;
}
}

Share this post


Link to post
Share on other sites

The module developer is here? One month without replies ...

Sorry guys, I'm back from my honeymoon, I will answer to all questions ASAP.

  • Like 1

Share this post


Link to post
Share on other sites

Sorry guys, I'm back from my honeymoon, I will answer to all questions ASAP.

Congratulations!  :) 

  • Like 1

Share this post


Link to post
Share on other sites

Hello does your module work with 1.6.1? I just did the update and it doesn't seem to do anything. Page seems to load slow and if I activate statistics at the end of the site it doesn't show up!?

That means the module is not correctly installed. Try to reset it. Tests I have done with 1.6.1 passed but some people have problems with overrides installation...

Share this post


Link to post
Share on other sites

Prestashop 1.6.1.0 tried to install Page cache v2.63. The site is now a white page and i see this error:

 

PHP Parse error:  syntax error, unexpected '{', expecting function (T_FUNCTION) in /home/uvapeseattle/public_html/override/classes/Customer.php on line 40

 

Help please

 

I modified the php and removed the bad {'s there were a couple.  All good. Cheers!

Was it a fresh install or un upgrade?

Share this post


Link to post
Share on other sites

What are the differences between standard cache in prestashop and Page Cache module.

And how many times faster will load pages on my website when I will use this instead standard cache?

Standard cache (smarty) is caching parsed templates which is very important to activate on a production site. It's compatible with PageCache.

PageCache is caching the generated pages as HTML; this avoids pages to be generated again and again. It also allows your site to use browser cache which is extremely fast!

The saved time depends on your site that's why I cannot tell you but there is a big difference.

Share this post


Link to post
Share on other sites

Failed installation of PageCache 2.63

on Prestashop 1.6.1.0.

 

I just upgraded my shop from PS 1.6.0.14 to 1.6.1.0 and before the upgrade I uninstalled & deleted previous PageCache version 2.49.

The upgrade to the PS 1.6.1.0 went well.

Then I tried to install PageCache Module version 2.63.

 

The shop then broke down. I had to copy back my previous version of the override-folder to get the shop running again.

I have had difficulties with upgrading PageCache for a while longer. I was trying earlier updates since PageCache 2.49 but these all broke my shop too.

Don't know what is happening exactly.

 

This is the error message I got on myt screen with the laste ihstall of PageCache 2.63:

QUOTE

[PrestaShop] Fatal error in module file :/xxxxx.com/public_html/modules/pagecache/pagecache_remove.inc:
Uncaught exception 'ReflectionException' with message 'Class HookOverrideOriginal_remove55c3d86331ccd does not exist' in /xxxxx.com/public_html/modules/pagecache/pagecache_remove.inc:37 Stack trace: #0 /xxxxx.com/public_html/modules/pagecache/pagecache_remove.inc(37): ReflectionClass->__construct('HookOverrideOri...') #1 [internal function]: jmRemoveOverride(Object(PageCache), 'Hook') #2 /xxxxx.com/public_html/modules/pagecache/pagecache.php(1895): call_user_func('jmRemoveOverrid...', Object(PageCache), 'Hook') #3 /xxxxx.com/public_html/modules/pagecache/pagecache.php(140): PageCache->jmRemoveOverride('Hook') #4 /xxxxx.com/public_html/controllers/admin/AdminModulesController.php(851): PageCache->install() #5 /xxxxx.com/public_html/controllers/admin/AdminModulesController.php(1098): AdminModulesControllerCore->postProcessCallback() #6 /home/xxxxxxxx/

UNQUOTE

 

Scary stuff and a shop going white as a result.

Any ideas about how to get the PageCache module to install again are welcome.

PM I changed the exact shop url for privacy reasons.

 

 

Follow Up:

I tried again, same result.

Then decided to reinstall PageCache 2.49.

That version installs properly and works under PS 1.6.1.0

 

For me PaceCache 2.63 has not yet been compatible with PS 1.6.1.0.

Edited by kashibabu (see edit history)

Share this post


Link to post
Share on other sites

I just upgraded my shop from PS 1.6.0.14 to 1.6.1.0 and before the upgrade I uninstalled & deleted previous PageCache version 2.49.

The upgrade to the PS 1.6.1.0 went well.

Then I tried to install PageCache Module version 2.63.

 

The shop then broke down. I had to copy back my previous version of the override-folder to get the shop running again.

Was your 1.6.0.14 also an upgrade from previous version?

 

 

This is the error message I got on myt screen with the laste ihstall of PageCache 2.63:

[PrestaShop] Fatal error in module file :/xxxxx.com/public_html/modules/pagecache/pagecache_remove.inc:
Uncaught exception 'ReflectionException' with message 'Class HookOverrideOriginal_remove55c3d86331ccd does not exist' in /xxxxx.com/public_html/modules/pagecache/pagecache_remove.inc:37 Stack trace: 
#0 /xxxxx.com/public_html/modules/pagecache/pagecache_remove.inc(37): ReflectionClass->__construct('HookOverrideOri...') 
#1 [internal function]: jmRemoveOverride(Object(PageCache), 'Hook') 
#2 /xxxxx.com/public_html/modules/pagecache/pagecache.php(1895): call_user_func('jmRemoveOverrid...', Object(PageCache), 'Hook') 
#3 /xxxxx.com/public_html/modules/pagecache/pagecache.php(140): PageCache->jmRemoveOverride('Hook') 
#4 /xxxxx.com/public_html/controllers/admin/AdminModulesController.php(851): PageCache->install() 
#5 /xxxxx.com/public_html/controllers/admin/AdminModulesController.php(1098): AdminModulesControllerCore->postProcessCallback() 
#6 /home/xxxxxxxx/

[...]

Then decided to reinstall PageCache 2.49.

That version installs properly and works under PS 1.6.1.0

I think you installed PageCache prior version 1.6.0.11, and the uninstall process probably failed to remove all overrides. When you tried to install PageCache 2.63 it failed to recognize v2.49 overrides... That's why v2.49 was able to install because it recognized its own overrides... but it's only a guess.

 

Anyway, I still try to reproduce the issue that some people (few) have with 1.6.1.0 but without any success. That's why I consider 2.63 is compatible with 1.6.1.0; if people have issues just contact me via contact form. Thank you.

Share this post


Link to post
Share on other sites

Hello PrestaPeople. 

 

I hope this hasn't been previously covered and if so, sorry for wasting time. My site seems to be having an intermittent problem with the displayed prices and I wonder if it is Page Cache that is causing it?

Randomly the website has started to display some prices with VAT included and other prices with VAT excluded for the same product. It happened in random places at random times for example product page shows VAT included but category page shows it excluded. Or the home page will show it excluded but he category page and product page is included. 

The site is set to show all prices including VAT.

Clearing Page Cache always seems to fix the problem but then a day or two later some problems will appear. 

 

The site is here

 

Thank you for reading. 

 

Share this post


Link to post
Share on other sites

Randomly the website has started to display some prices with VAT included and other prices with VAT excluded for the same product. It happened in random places at random times for example product page shows VAT included but category page shows it excluded. Or the home page will show it excluded but he category page and product page is included. 

Do you have any group that show VAT excuded? In back office --> customers --> groups --> edit a group --> price display method

Groups are handled but it's a first check.

Share this post


Link to post
Share on other sites

Just a note to say thanks to Mr/Mrs PageCache for helping me fix the issues with my store. If anyone is following this thread to see if the module is worth buying I will definitely say yes it is. Not only did it speed my site up massively but the support has been awesome too. 

  • Like 2

Share this post


Link to post
Share on other sites

hi, i'm buyer pagecache module.

 

today, i want update module.

 

than click 'update it!' button in BO > module page

 

but it is not work.

 

so i delete module and reinstall module.

 

but i meet the message like this

 

'2 errors'

'Error on downloading the lastest version'

'Module not found'

 

plz help me

Share this post


Link to post
Share on other sites

hi, i'm buyer pagecache module.

today, i want update module.

than click 'update it!' button in BO > module page

but it is not work.

so i delete module and reinstall module.

but i meet the message like this

'2 errors'

'Error on downloading the lastest version'

'Module not found'

This is maybe a temporary problem (network).

You can also connect to addons and download the module to install it again.

Share this post


Link to post
Share on other sites

How to prevent module to cache certain page?

For e.g. if url include /somepage/ then not to cache.

This is not possible but you can decide the type of page you don't want to cache: product, category, CMS, home, supplier, best sales, etc.

Share this post


Link to post
Share on other sites

This is maybe a temporary problem (network).

You can also connect to addons and download the module to install it again.

 

thx~ JPresta!!

 

i will check module!

 

very fast response!

Share this post


Link to post
Share on other sites

is the module compatible with mod_pagespeed?

Yes except you must set 

ModPagespeedModifyCachingHeaders off

so browser cache feature can work (otherwise cache directive is overrided by pagespeed).

Share this post


Link to post
Share on other sites

Yes except you must set 

ModPagespeedModifyCachingHeaders off

so browser cache feature can work (otherwise cache directive is overrided by pagespeed).

How can we test if this is enabled or not? i cant find such an option in pagespeed.conf

Share this post


Link to post
Share on other sites

Hi,

 

I plan to upgrade to PS 1.6.1.1 with 1-2 weeks. Are the any known bugs with Page Cache and that version?

 

Best regards,

Morten

Share this post


Link to post
Share on other sites

I plan to upgrade to PS 1.6.1.1 with 1-2 weeks. Are the any known bugs with Page Cache and that version?

Hi, there was an issue for some people during installation of overrides. I finally fixed it in version 2.67 that is currently in validation process on addons but is already available on jpresta.com. If you just upgrade this should work because overrides are already installed.

  • Like 1

Share this post


Link to post
Share on other sites

I upgraded a PrestaShop from 1.6.08 to 1.6.1.0

 

Since this upgrade we have problems with the prices on the Home page :

 

They change to price excl. Tax sometimes.

 

After this happens, i delete the Cache from Page Cache, and the price is shown

as it must be : INCLUDING tax.

 

We are using PrestaShop as Multi-Shop, the shop that has the problems is the second shop.

The "first" shop, we can't see if there's the same problem, because we are planning to

use that shop at a later time.

 

In the Cache info i see the the Customer Group "Default" when logged in, but also not logged in,

i see the Customer Group "Visitors"
All Customer Groups for this shop are configured to show prices including taxes.

 

The problem seems te be in the Page Cache Module, when i disable the Page Cache,

all prices are shown including tax,,,,
 

I have a Word document with print screens with the Page Cache info window available,
in the attachement.