Peter.31 Posted April 6, 2023 Share Posted April 6, 2023 Hi, I have a problem loading the home page of the e-shop. If I make any changes on the home page, e.g.: add or deactivate a product, change the price, banner, etc., the change will only take effect after the second loading of the page. No change will be reflected when the page is first loaded. If I open the page via "private window", the change will be reflected immediately. There is probably a problem with cookies. Has anyone encountered a similar problem? Thanks in advance for your help. Link to comment Share on other sites More sharing options...
Nickz Posted April 6, 2023 Share Posted April 6, 2023 (edited) clear those caches. Edited April 7, 2023 by Nickz (see edit history) Link to comment Share on other sites More sharing options...
Peter.31 Posted April 7, 2023 Author Share Posted April 7, 2023 (edited) 8 hours ago, Nickz said: clear the chases. What should I clear? Edited April 7, 2023 by Peter.31 (see edit history) Link to comment Share on other sites More sharing options...
Nickz Posted April 7, 2023 Share Posted April 7, 2023 (edited) 12 hours ago, Peter.31 said: What should I clear? caches, I corrected that misspelling, sorry Edited April 7, 2023 by Nickz (see edit history) Link to comment Share on other sites More sharing options...
Peter.31 Posted April 7, 2023 Author Share Posted April 7, 2023 1 hour ago, Nickz said: caches, I corrected that misspelling, sorry I tried that but it doesn't fix the problem. I still have to reload the page twice if I want to see the changes on the homepage. Link to comment Share on other sites More sharing options...
AddWeb Solution Posted April 10, 2023 Share Posted April 10, 2023 On 4/7/2023 at 11:30 AM, Peter.31 said: What should I clear? Hi @Peter.31, Clear the cache from Perfromance page. (Ref below image) During development / for debugging, disable the cache and change Template Compilation value to `Force compilation` and Save it for an immediate effects on any changes. (NOTE: Don't forget to enable it again after the development work is done) (Ref below Image) Let me know If this helps. Link to comment Share on other sites More sharing options...
Peter.31 Posted April 10, 2023 Author Share Posted April 10, 2023 1 hour ago, AddWeb Solution said: Hi @Peter.31, Clear the cache from Perfromance page. (Ref below image) During development / for debugging, disable the cache and change Template Compilation value to `Force compilation` and Save it for an immediate effects on any changes. (NOTE: Don't forget to enable it again after the development work is done) (Ref below Image) Let me know If this helps. I've already tried that too. After clear the cache, the change takes effect immediately. But if I add a new product, it will be displayed again only after the second page load. There will probably be an error in the theme, or in the module that displays new products on the home page. Link to comment Share on other sites More sharing options...
AddWeb Solution Posted April 10, 2023 Share Posted April 10, 2023 1 hour ago, Peter.31 said: I've already tried that too. After clear the cache, the change takes effect immediately. But if I add a new product, it will be displayed again only after the second page load. There will probably be an error in the theme, or in the module that displays new products on the home page. During development / for debugging, disable the cache and change Template Compilation value to `Force compilation` and Save it for an immediate effects on any changes. (NOTE: Don't forget to enable it again after the development work is done) (Ref below Image) @Peter.31 Have you tried this solution? Link to comment Share on other sites More sharing options...
Peter.31 Posted April 10, 2023 Author Share Posted April 10, 2023 16 minutes ago, AddWeb Solution said: During development / for debugging, disable the cache and change Template Compilation value to `Force compilation` and Save it for an immediate effects on any changes. (NOTE: Don't forget to enable it again after the development work is done) (Ref below Image) @Peter.31 Have you tried this solution? Yes I tried that but it didn't help either. Link to comment Share on other sites More sharing options...
AddWeb Solution Posted April 10, 2023 Share Posted April 10, 2023 1 hour ago, Peter.31 said: Yes I tried that but it didn't help either. Okay. Below could be some of the reasons for caching issues. Browser Cache : The simple solution to disable browser cache would be to use Incognito mode for testing purpose. Disable CCC (ref below image Disable Caching. available on botton of the performance page. (ref below image) Let me know If this resolves the issue Link to comment Share on other sites More sharing options...
Peter.31 Posted April 10, 2023 Author Share Posted April 10, 2023 6 minutes ago, AddWeb Solution said: Okay. Below could be some of the reasons for caching issues. Browser Cache : The simple solution to disable browser cache would be to use Incognito mode for testing purpose. Disable CCC (ref below image Disable Caching. available on botton of the performance page. (ref below image) Let me know If this resolves the issue Unfortunately, that didn't help either. The product will be displayed again only after the second loading of the page. Link to comment Share on other sites More sharing options...
AddWeb Solution Posted April 10, 2023 Share Posted April 10, 2023 1 minute ago, Peter.31 said: Unfortunately, that didn't help either. The product will be displayed again only after the second loading of the page. Oops.. Just for clarification, Have you saved each sections after disabling (CCC, Caching) Link to comment Share on other sites More sharing options...
Peter.31 Posted April 10, 2023 Author Share Posted April 10, 2023 6 minutes ago, AddWeb Solution said: Oops.. Just for clarification, Have you saved each sections after disabling (CCC, Caching) Yes, I saved everything. Module "Featured products" from PrestaShop, the change will be reflected immediately. The problem is only with modules that are part of the theme, such as: New products. Link to comment Share on other sites More sharing options...
AddWeb Solution Posted April 10, 2023 Share Posted April 10, 2023 Okay @Peter.31. Try the below steps and check If it works, Goto /app/config and open parameters.php file. Change 'ps_cache_enable' value to false Goto /var/cache and delete prod folder. Clear the cache again after doing all these steps and then try to create new product. Link to comment Share on other sites More sharing options...
Peter.31 Posted April 10, 2023 Author Share Posted April 10, 2023 3 minutes ago, AddWeb Solution said: Okay @Peter.31. Try the below steps and check If it works, Goto /app/config and open parameters.php file. Change 'ps_cache_enable' value to false Goto /var/cache and delete prod folder. Clear the cache again after doing all these steps and then try to create new product. This value has already been changed to false. Link to comment Share on other sites More sharing options...
El Patron Posted April 10, 2023 Share Posted April 10, 2023 your .css should have mod_expires, so if for example theme.css has mod_expires for 2 weeks, then theme.css will be cached in browser for that long ctl+shift+r or incognito will fetch new my.css there are no ps workarounds, outside of ps you could: update mod_expires for .css to low value in .htaccess, or remove entirely...make sure to change back to 2 weeks or whatever it was after make sure you enable smarty cache and other configuration suggestions above to optimal settings. Link to comment Share on other sites More sharing options...
Peter.31 Posted April 11, 2023 Author Share Posted April 11, 2023 11 hours ago, PrestaHeroes USA said: your .css should have mod_expires, so if for example theme.css has mod_expires for 2 weeks, then theme.css will be cached in browser for that long ctl+shift+r or incognito will fetch new my.css there are no ps workarounds, outside of ps you could: update mod_expires for .css to low value in .htaccess, or remove entirely...make sure to change back to 2 weeks or whatever it was after make sure you enable smarty cache and other configuration suggestions above to optimal settings. Thanks for help. But that didn't help either. I also tested the site in incognito mode. But the response is still the same. The first time after loading, no change is reflected, the second time after loading the page, the change is already reflected. Link to comment Share on other sites More sharing options...
AddWeb Solution Posted April 12, 2023 Share Posted April 12, 2023 Hi @Peter.31 As a final try, kindly enable the cache in performance page and set clear cache value to `Clear cache everytime something has been modified` as mentioned in below image. Check other values too from the below screenshot. Save once you made the changes, Clear cache and check. Link to comment Share on other sites More sharing options...
Peter.31 Posted April 13, 2023 Author Share Posted April 13, 2023 17 hours ago, AddWeb Solution said: Hi @Peter.31 As a final try, kindly enable the cache in performance page and set clear cache value to `Clear cache everytime something has been modified` as mentioned in below image. Check other values too from the below screenshot. Save once you made the changes, Clear cache and check. Unfortunately, that didn't help either. There will probably be an error in the module or in the theme. Link to comment Share on other sites More sharing options...
Nickz Posted April 13, 2023 Share Posted April 13, 2023 The second loading issue is only for you or also affects other people? Link to comment Share on other sites More sharing options...
Peter.31 Posted April 13, 2023 Author Share Posted April 13, 2023 45 minutes ago, Nickz said: The second loading issue is only for you or also affects other people? For everyone who visits the website. Link to comment Share on other sites More sharing options...
Nickz Posted April 13, 2023 Share Posted April 13, 2023 4 hours ago, Peter.31 said: For everyone who visits the website. Ok what server do you have? VPS, Shared or dedicated? RAM, HDD or SSD? Memory allocated to php? You find that in the respective php.ini file of your server. Link to comment Share on other sites More sharing options...
Peter.31 Posted April 13, 2023 Author Share Posted April 13, 2023 There will probably be an error in the theme. I will try to contact the theme developer, hopefully he will help me. Link to comment Share on other sites More sharing options...
El Patron Posted April 24, 2023 Share Posted April 24, 2023 while on the subject of css, here is one of our latest works, cssPro Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now