Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In Magento, whenever you make changes to products, static blocks, etc, it recognizes that the data in the database is no longer the same as what it has in the cache. Unfortunately, Magento doesn't realize <strong>what</strong> cache data is different, just that <strong>something</strong> is different.</p> <p>You will need to go into <em>System > Cache Management</em> and refresh the invalidated cache types.</p> <p>EDIT:</p> <p>Create a module (or use an existing module) that you can use to set up a cron job for refreshing the cache. Create a file: {namespace}/{modulename}/Model/Observer.php</p> <p>Inside that file:</p> <pre><code>&lt;?php class &lt;namespace&gt;_&lt;modulename&gt;_Model_Observer { public function refreshCache() { try { $allTypes = Mage::app()-&gt;useCache(); foreach($allTypes as $type =&gt; $blah) { Mage::app()-&gt;getCacheInstance()-&gt;cleanType($type); } } catch (Exception $e) { // do something error_log($e-&gt;getMessage()); } } } </code></pre> <p>In your module's etc/config.xml:</p> <pre><code>&lt;config&gt; ... &lt;crontab&gt; &lt;jobs&gt; &lt;{modulename}_refresh_cache&gt; &lt;schedule&gt;&lt;cron_expr&gt;* * * * *&lt;/cron_expr&gt;&lt;/schedule&gt; &lt;run&gt;&lt;model&gt;{modulename}/observer::refreshCache&lt;/model&gt;&lt;/run&gt; &lt;/{modulename}_refresh_cache&gt; &lt;/jobs&gt; &lt;/crontab&gt; ... &lt;/config&gt; </code></pre> <p>Now as long as cron is configured correctly on your server, the cache will update automatically, as often as cron runs.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload