Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Cache & Synchronize pages after update
(1 viewing) (1) Guest
Support forum for customers who have purchased this product. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Cache & Synchronize pages after update

Cache & Synchronize pages after update 10 years, 6 months ago #44698

Hi,
We have around 800 products in our store and a few dozens of CMS pages.
Our store is using a custom web service to update our products inventory and prices (and a few other things) 3 times a day (fetching the info from our company's ERP). In each time we are enabling/disabling products based on the inventory, also changing prices.

When using M-turbo the site is working a lot faster but sometimes we see products that are actually disabled or have no stock, also prices are not updating in the front-end.

I tried using a cron job to update the cached pages but the text file that contains the URL's is not been updated to the current state of products so the script is running, but the cached pages that are disabled are not being removed and the new pages are not being added.

Currently the extension has been uninstalled until we'll find a solution.
Please advise, any suggestion will be more than welcome.
The topic has been locked.

Re: Cache & Synchronize pages after update 10 years, 6 months ago #44775

  • vebi
  • OFFLINE
  • Posts: 444
Hello,

I apologize for slow support service, we are going to change our way of providing support soon, as our current capacity does not allow us to answer all questions in time as we would like to.
Our programmers will answer you as soon as possible.
ARTIO Support Team
The topic has been locked.

Re: Cache & Synchronize pages after update 10 years, 6 months ago #44784

OK, Thanks for the notice. I'll keep waiting but FYI this is pretty urgent.
The topic has been locked.

Re: Cache & Synchronize pages after update 10 years, 6 months ago #44787

  • jich
  • OFFLINE
  • Posts: 254
Hello arielmorry,

We have prepared a simple script for this purpose. Save the follows lines to a file in your Magento file system (good choice is shell/mturbo.php, file should not be executed via web for security reasons).

 
require_once 'app/Mage.php';
 
Mage::app();
 
$websites = Mage::getModel('core/website')->getCollection()->load();
 
$model = Mage::getModel('mturbo/mturbo');
 
$model->getFileModel()->clearAllPages();
$model->synchronize();
 
foreach ($websites as $website)
$model->generateUrlList($website);
 
Mage::getModel('mturbo/observer')->automaticDownload();
 


This script remove all cached pages, perform the synchronization with new entities, generate the new url lists and download all pages via the shell script. You should execute it as web server user.

For Ubuntu you can use command

sudo -u www-data php -f shell/mturbo.php 


For other distributions it may be otherwise. We hope that you are familiar with your server. Do not forget that script must be executed from root of your Magento, else you would have to set 'open_basedir' and 'include_path' properly.

We hope it will help you. If there appears a problem or if you have a question let us know, please. We are ready to help you.
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
Moderators: pedu
User Login Empty