<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Stratus - Cache &amp; Session Guides on Webscale Product Documentation</title><link>https://docs.webscale.com/docs/reference/stratus/guides/caches-and-sessions/</link><description>Recent content in Stratus - Cache &amp; Session Guides on Webscale Product Documentation</description><generator>Hugo</generator><language>en</language><atom:link href="https://docs.webscale.com/docs/reference/stratus/guides/caches-and-sessions/index.xml" rel="self" type="application/rss+xml"/><item><title>Stratus Guides - Redis Cache Configuration</title><link>https://docs.webscale.com/docs/reference/stratus/guides/caches-and-sessions/cache-configuration/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.webscale.com/docs/reference/stratus/guides/caches-and-sessions/cache-configuration/</guid><description>&lt;blockquote&gt;
&lt;p&gt;Webscale STRATUS does not allow cache to be stored in files or the database.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Redis caches are controlled and configured in the &lt;strong&gt;&lt;a href="https://docs.webscale.com/docs/reference/stratus/control-panels/redis-panel/full-page-cache/"&gt;Redis&lt;/a&gt;
&lt;/strong&gt; section of the Webscale STRATUS Control panel.&lt;/p&gt;
&lt;h2 id="accessing-redis-cache-via-ssh"&gt;Accessing Redis Cache via SSH&lt;/h2&gt;
&lt;p&gt;The Webscale STRATUS Redis services are accessible directly via &lt;a href="https://docs.webscale.com/docs/reference/stratus/control-panels/ssh-panel/info/"&gt;SSH&lt;/a&gt;
:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;redis-cli -h redis -p &lt;span class="m"&gt;6379&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;redis-cli -h redis-config-cache -p &lt;span class="m"&gt;6381&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;redis-cli -h redis-session -p &lt;span class="m"&gt;6380&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In addition to the Webscale STRATUS Control panel, &lt;a href="https://redis.io/commands" target="_blank"&gt;Redis commands&lt;i class="ps-1 fa fa-external-link"&gt;&lt;/i&gt;&lt;/a&gt;
 can be used to control the Redis cache on the STRATUS install. With exception to Varnish for the Magento 2 FPC, Redis is recommended for all caches on Webscale STRATUS.&lt;/p&gt;</description></item><item><title>Stratus Guides - Session Cache Configuration</title><link>https://docs.webscale.com/docs/reference/stratus/guides/caches-and-sessions/stratus-sessions-for-magento-1-and-2/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.webscale.com/docs/reference/stratus/guides/caches-and-sessions/stratus-sessions-for-magento-1-and-2/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; All Magento stores on STRATUS are required to use either Redis (recommended) or Memcache for session storage. Sessions cannot be stored in files nor in the database. See [Magento Requirements](/docs/reference/stratus/about-webscale-stratus/magento-requirements/ &amp;ldquo;STRATUS Magento Requirements&amp;rdquo;/) for the full list of requirements.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id="redis"&gt;Redis&lt;/h2&gt;
&lt;p&gt;Redis can be enabled, disabled, or flushed in the &lt;strong&gt;[Redis &amp;gt; Config Cache][2]&lt;/strong&gt; STRATUS Control panel.&lt;/p&gt;
&lt;p&gt;Using CLI commands:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;To view: &lt;code&gt;redis-cli -h redis-session info | tail -4&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;To flush sessions: &lt;code&gt;redis-cli -h redis-session -p 6380 FLUSHALL&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;NOTE: Sessions do NOT clear with the &lt;code&gt;/usr/share/stratus/cli cache.all.clear command&lt;/code&gt; nor do they clear during a redeploy.&lt;/p&gt;</description></item><item><title>Stratus Guides - Clearing Opcache</title><link>https://docs.webscale.com/docs/reference/stratus/guides/caches-and-sessions/opcache/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.webscale.com/docs/reference/stratus/guides/caches-and-sessions/opcache/</guid><description>&lt;blockquote&gt;
&lt;p&gt;The &lt;a href="https://docs.webscale.com/docs/reference/stratus/guides/webscale-stratus/stratus-cli/"&gt;Webscale STRATUS CLI&lt;/a&gt;
 can also be used to clear the opcache instead of this method.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;On all Webscale STRATUS sites, the hostname:port is &lt;em&gt;phpfpm:9000&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;To use &lt;a href="https://gordalina.github.io/cachetool/" target="_blank"&gt;Cachetool&lt;i class="ps-1 fa fa-external-link"&gt;&lt;/i&gt;&lt;/a&gt;
, configure these settings in &lt;code&gt;.cachetool.yml&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;adapter: fastcgi
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;fastcgi: php-fpm:9000
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;temp_dir: /srv/tmp
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;For PHP 7.0.x, &lt;em&gt;download&lt;/em&gt; the following file:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;wget -c https://github.com/gordalina/cachetool/raw/gh-pages/downloads/cachetool-3.2.1.phar&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;For PHP 7.1 or 7.2, &lt;em&gt;download&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;wget -c http://gordalina.github.io/cachetool/downloads/cachetool.phar&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The file must be renamed &lt;em&gt;.cachetool.yml&lt;/em&gt;. CacheTool will look for this file in the current directory.&lt;/p&gt;</description></item></channel></rss>