<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									no-cache headers - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 21 Jul 2026 11:12:02 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: no-cache headers</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-46678</link>
                        <pubDate>Fri, 09 Oct 2020 13:56:21 +0000</pubDate>
                        <description><![CDATA[@alvina I’m not sure I understand what you’re saying. 
has woForo been starting an unnecessary session for years, sitewide, anywhere it’s been installed?
Am I understanding this correctly?]]></description>
                        <content:encoded><![CDATA[<p>@alvina I’m not sure I understand what you’re saying. </p>
<p>has woForo been starting an unnecessary session for years, sitewide, anywhere it’s been installed?</p>
<p>Am I understanding this correctly?</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>DaveHamilton</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-46678</guid>
                    </item>
				                    <item>
                        <title>RE: no-cache headers</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-46673</link>
                        <pubDate>Fri, 09 Oct 2020 09:52:07 +0000</pubDate>
                        <description><![CDATA[@davehamilton,
This will be fixed in the next version of the plugin update.
Besides, Please note the wpForo refused session and does not use it.]]></description>
                        <content:encoded><![CDATA[<p>@davehamilton,</p>
<p>This will be fixed in the next version of the plugin update.</p>
<p>Besides, Please note the wpForo refused session and does not use it. </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Alvina</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-46673</guid>
                    </item>
				                    <item>
                        <title>RE: no-cache headers</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-46665</link>
                        <pubDate>Fri, 09 Oct 2020 05:46:10 +0000</pubDate>
                        <description><![CDATA[Ok, we&#039;ve sleuthed and solved this problem, at least for ourselves.
The issue is that when session_start() is called, PHP does whatever session_cache_limiter() is set for it to do. And, by ...]]></description>
                        <content:encoded><![CDATA[<p>Ok, we've sleuthed and solved this problem, at least for ourselves.</p>
<p>The issue is that when <a href="https://www.php.net/manual/en/function.session-start.php" target="true">session_start()</a><em> </em>is called, PHP does whatever <a href="https://www.php.net/manual/en/function.session-cache-limiter.php" target="true">session_cache_limiter()</a> is set for it to do. And, by default, it's set to <em>nocache</em> which, as you might now guess, yields:</p>
<blockquote>
<pre>Expires: Thu, 19 Nov 1981 08:52:00 GMT<br />Cache-Control: no-store, no-cache, must-revalidate<br />Pragma: no-cache</pre>
</blockquote>
<p>In and of itself, this is fine. The problem is that wpForo is calling <em>session_start()</em> for ALL requests, including those that aren't logged in. Why, of course, is something perhaps the admins here might be able to answer.</p>
<p>But we can get around it. I'll add the caveat that what we've done works on our server with our setup. It probably will work for many others, but I can't guarantee that, of course.</p>
<p>We fixed it by editing <em>wp-content/plugins/wpforo/wpf-includes/class-notices.php</em> and adding the (current as of the date of this post) line 16 <em>session_cache_limiter('');</em>. Essentially replacing the three-line function that's there with this four-line one, adding the bolded/red line:</p>
<blockquote>
<pre>private function init(){<br /><span style="color: #ff0000"><strong>         session_cache_limiter('');</strong></span><br />         if( !wpforo_is_session_started() &amp;&amp; ( !is_admin() || (!empty($_GET) &amp;&amp; strpos($_GET, 'wpforo-') !== false ) || (wpforo_is_ajax() &amp;&amp; !empty($_POST) &amp;&amp; false !== strpos($_POST, 'wpforo')) )) session_start();<br />}<br /><br /></pre>
</blockquote>
<p>wpForo is still starting its session on non-logged-in users, but now it's not causing the no-cache headers to be sent. The good news is that when a Wordpress user <em>is</em> logged in, that causes Wordpress's no-cache headers to be sent, accomplishing pretty much the same goal.</p>
<p>This seems to affect every single site upon which wpForo runs, including this site and the entire gVectors.com site, too.</p>
<p>I'll be curious to hear what the wpForo authors think about all this.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>DaveHamilton</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-46665</guid>
                    </item>
				                    <item>
                        <title>RE: no-cache headers</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-38421</link>
                        <pubDate>Sun, 22 Mar 2020 15:56:43 +0000</pubDate>
                        <description><![CDATA[@martin
Just press the full screen option of the editor. A visual problem, still there are some here and there.
&nbsp;]]></description>
                        <content:encoded><![CDATA[<p>@martin</p>
<p>Just press the full screen option of the editor. A visual problem, still there are some here and there.</p>
<p>&nbsp;</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Anonymous20</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-38421</guid>
                    </item>
				                    <item>
                        <title>RE: no-cache headers</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-38418</link>
                        <pubDate>Sun, 22 Mar 2020 15:53:19 +0000</pubDate>
                        <description><![CDATA[@anonymous20,
I don&#039;t see any issue on the screenshot. What&#039;s wrong exactly?
&nbsp;]]></description>
                        <content:encoded><![CDATA[<p>@anonymous20,</p>
<p>I don't see any issue on the screenshot. What's wrong exactly?</p>
<p>&nbsp;</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Martin</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-38418</guid>
                    </item>
				                    <item>
                        <title>RE: no-cache headers</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-38415</link>
                        <pubDate>Sun, 22 Mar 2020 13:20:55 +0000</pubDate>
                        <description><![CDATA[@martin
Sorry to step in, apparently you are far more into this, still Auto Optimize doesn&#039;t work right.
Even here (see my capture as a small example). Several things must be excluded and ...]]></description>
                        <content:encoded><![CDATA[<p>@martin</p>
<p>Sorry to step in, apparently you are far more into this, still Auto Optimize doesn't work right.</p>
<p>Even here (see my capture as a small example). Several things must be excluded and that is not easy to find (i know what to exclude but most do not).</p>
<p>Fast Velocity optimizer works well with wpForo and Wordpress also, if someone needs to optimize.</p>
<p>&nbsp;</p>
<div id="wpfa-" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1584883255-2020-03-22-15_17_41-no-cache-headers--How-to-and-Troubleshooting--wpForo-Support-Forum.png" target="_blank"><i class="fas fa-paperclip"></i>&nbsp;2020-03-22-15_17_41-no-cache-headers-–-How-to-and-Troubleshooting-–-wpForo-Support-Forum.png</a></div>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Anonymous20</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-38415</guid>
                    </item>
				                    <item>
                        <title>RE: no-cache headers</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-38414</link>
                        <pubDate>Sun, 22 Mar 2020 13:11:16 +0000</pubDate>
                        <description><![CDATA[@diggerdog,
The header doesn&#039;t have any relation to wpForo.
For the speed, please make sure wpForo cache options are enabled in Dashboard &gt; Forums &gt; Settings &gt; Features admin page...]]></description>
                        <content:encoded><![CDATA[<p>@diggerdog,</p>
<p>The header doesn't have any relation to wpForo.</p>
<p>For the speed, please make sure wpForo cache options are enabled in Dashboard &gt; Forums &gt; Settings &gt; Features admin page. Also, try to install Autoptimize plugin and test the speed. Current wpForo versions work fine with this plugin. This is not a cache plugin but does well optimization of forum page loading speed.</p>
<p>And read this support topic to exclude forum from your cache solutions: <a href="../../faq/wpforo-and-cache-plugins/#post-37150">https://wpforo.com/community/faq/wpforo-and-cache-plugins/#post-37150</a></p>
<p>&nbsp;</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Martin</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-38414</guid>
                    </item>
				                    <item>
                        <title>RE: no-cache headers</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-38413</link>
                        <pubDate>Sun, 22 Mar 2020 13:08:23 +0000</pubDate>
                        <description><![CDATA[I have excluded WpForo from the cache. When I disable WpForo the issue goes away so it is caused by the plug in.]]></description>
                        <content:encoded><![CDATA[<p>I have excluded WpForo from the cache. When I disable WpForo the issue goes away so it is caused by the plug in.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>diggerdog</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-38413</guid>
                    </item>
				                    <item>
                        <title>RE: no-cache headers</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-38410</link>
                        <pubDate>Sun, 22 Mar 2020 12:41:06 +0000</pubDate>
                        <description><![CDATA[Nothing like that is added by wpForo, not in my sites.
As for the extra 2 seconds added, what exactly is the question?
Also no caching works right with wpForo, this has been talked and eve...]]></description>
                        <content:encoded><![CDATA[<p>Nothing like that is added by wpForo, not in my sites.</p>
<p>As for the extra 2 seconds added, what exactly is the question?</p>
<p>Also no caching works right with wpForo, this has been talked and even pinned here. Exclude wpForo from any caching and/or optimizer. At least until you have a need for them. When that time arrives, there is also plenty of info posted here.</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Anonymous20</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-38410</guid>
                    </item>
				                    <item>
                        <title>RE: no-cache headers</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-38409</link>
                        <pubDate>Sun, 22 Mar 2020 12:38:29 +0000</pubDate>
                        <description><![CDATA[Extra info, disabling WpForo take 2 seconds off my site loading time in GTmetrix.]]></description>
                        <content:encoded><![CDATA[<p>Extra info, disabling WpForo take 2 seconds off my site loading time in GTmetrix.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>diggerdog</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/no-cache-headers/#post-38409</guid>
                    </item>
							        </channel>
        </rss>
		