<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged caching</title>
<link>https://www.question2answer.org/qa/tag/caching</link>
<description>Powered by Question2Answer</description>
<item>
<title>There is an issue in Q2A image upload when cache feature is enabled</title>
<link>https://www.question2answer.org/qa/100099/there-is-an-issue-q2a-image-upload-when-cache-feature-enabled</link>
<description>

&lt;p&gt;&lt;strong&gt;I have set max upload size is 8MB in ckeditor image upload feature. I have also enabled filesystem cache for 1 hour.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When I upload an image greater than 8MB while asking question then I get Javascript error that &quot;maximum upload size is 8MB&quot;. All right till now!&lt;/p&gt;

&lt;p&gt;The issue is that this error is also getting cached and it affects all the user on the q2a site. If users uploads an image lesser than 8MB size Even then they have the same Javascript error as &quot;maximum upload size is 8MB&quot; and the image is not getting uploaded.&lt;/p&gt;

&lt;p&gt;Please help me how can I resolve this.&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/100099/there-is-an-issue-q2a-image-upload-when-cache-feature-enabled</guid>
<pubDate>Thu, 10 Mar 2022 05:31:42 +0000</pubDate>
</item>
<item>
<title>I am trying to create html cache using opcache. Anyone intrested ?</title>
<link>https://www.question2answer.org/qa/94416/am-trying-create-html-cache-using-opcache-anyone-intrested</link>
<description>I am trying to create html cache using opcache. Anyone intrested ?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/94416/am-trying-create-html-cache-using-opcache-anyone-intrested</guid>
<pubDate>Sun, 04 Jul 2021 04:29:18 +0000</pubDate>
</item>
<item>
<title>Why Q2A is not using redis it is better than memcached?</title>
<link>https://www.question2answer.org/qa/92748/why-q2a-is-not-using-redis-it-is-better-than-memcached</link>
<description>Why Q2A is not using redis it is better than memcached?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/92748/why-q2a-is-not-using-redis-it-is-better-than-memcached</guid>
<pubDate>Fri, 30 Apr 2021 02:31:51 +0000</pubDate>
</item>
<item>
<title>i have a proplem in cache</title>
<link>https://www.question2answer.org/qa/90201/i-have-a-proplem-in-cache</link>
<description>my website that use q2a have alot of php request so after a few hours my server have been cached, i make a test in many servers proplem stay</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/90201/i-have-a-proplem-in-cache</guid>
<pubDate>Thu, 07 Jan 2021 12:24:26 +0000</pubDate>
</item>
<item>
<title>Do I need to disable caching on the site, if using Cloudflare cache?</title>
<link>https://www.question2answer.org/qa/86041/do-need-to-disable-caching-on-the-site-using-cloudflare-cache</link>
<description></description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/86041/do-need-to-disable-caching-on-the-site-using-cloudflare-cache</guid>
<pubDate>Wed, 15 Jul 2020 11:16:24 +0000</pubDate>
</item>
<item>
<title>How do I enabled Caching?</title>
<link>https://www.question2answer.org/qa/84039/how-do-i-enabled-caching</link>
<description>

&lt;p&gt;I would like to know how to enable&amp;nbsp;Caching on my site &lt;a target=&quot;_blank&quot; rel=&quot;nofollow&quot; href=&quot;https://qna.sturtz.ml&quot;&gt;Sturtz QnA &lt;/a&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/84039/how-do-i-enabled-caching</guid>
<pubDate>Mon, 18 May 2020 20:41:51 +0000</pubDate>
</item>
<item>
<title>What's the purpose of &quot;delete expired cache&quot; button?</title>
<link>https://www.question2answer.org/qa/74670/whats-the-purpose-of-delete-expired-cache-button</link>
<description>Expired cache appears to be replaced automatically by new cache. So what's the purpose of the button &amp;quot;delete expired cache&amp;quot;?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/74670/whats-the-purpose-of-delete-expired-cache-button</guid>
<pubDate>Mon, 06 May 2019 21:14:30 +0000</pubDate>
</item>
<item>
<title>Leverage browser caching for the following cacheable resources</title>
<link>https://www.question2answer.org/qa/72124/leverage-browser-caching-for-following-cacheable-resources</link>
<description>

&lt;ul style=&quot;box-sizing:inherit; color:#646464; font-family:Arial,sans-serif; font-size:12px; padding-left:28px&quot;&gt;

&lt;li style=&quot;box-sizing: inherit; margin-top: 0px;&quot;&gt;&lt;a href=&quot;https://www.studyroom.co.za/qa-content/jquery-3.3.1.min.js&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot; style=&quot;box-sizing: inherit; background: transparent; color: rgb(37, 111, 162); transition: color 0.1s ease-out 0s; margin-top: 0px; margin-bottom: 0px; word-break: break-all;&quot;&gt;https://www.example.com/qa-content/jquery-3.3.1.min.js&lt;/a&gt;&amp;nbsp;(expiration not specified)&lt;/li&gt;

&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;a href=&quot;https://www.studyroom.co.za/qa-content/jquery-3.3.1.min.js&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot; style=&quot;color: rgb(37, 111, 162); background: transparent; box-sizing: inherit; transition: color 0.1s ease-out 0s; margin-top: 0px; margin-bottom: 0px; word-break: break-all;&quot;&gt;https://www.example.com/&lt;/a&gt;&lt;a href=&quot;https://www.studyroom.co.za/qa-theme/SnowFlat/images/icons/close-black.png&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot; style=&quot;box-sizing: inherit; background: transparent; color: rgb(37, 111, 162); transition: color 0.1s ease-out 0s; margin-top: 0px; margin-bottom: 0px; outline: 0px; text-decoration-line: none; word-break: break-all;&quot;&gt;qa-theme/SnowFlat/images/icons/close-black.png&lt;/a&gt;&amp;nbsp;(expiration not specified)&lt;/li&gt;

&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;a href=&quot;https://www.studyroom.co.za/qa-content/jquery-3.3.1.min.js&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot; style=&quot;color: rgb(37, 111, 162); background: transparent; box-sizing: inherit; transition: color 0.1s ease-out 0s; margin-top: 0px; margin-bottom: 0px; word-break: break-all;&quot;&gt;https://www.example.com/&lt;/a&gt;&lt;a href=&quot;https://www.studyroom.co.za/qa-theme/SnowFlat/images/icons/search-mobile.png&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot; style=&quot;box-sizing: inherit; background: transparent; color: rgb(37, 111, 162); transition: color 0.1s ease-out 0s; margin-top: 0px; margin-bottom: 0px; word-break: break-all;&quot;&gt;qa-theme/SnowFlat/images/icons/search-mobile.png&lt;/a&gt;&amp;nbsp;(expiration not specified)&lt;/li&gt;

&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;a href=&quot;https://www.studyroom.co.za/qa-content/jquery-3.3.1.min.js&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot; style=&quot;color: rgb(37, 111, 162); background: transparent; box-sizing: inherit; transition: color 0.1s ease-out 0s; margin-top: 0px; margin-bottom: 0px; word-break: break-all;&quot;&gt;https://www.example.com/&lt;/a&gt;&lt;a href=&quot;https://www.studyroom.co.za/qa-theme/SnowFlat/images/vote-buttons-2.png&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot; style=&quot;box-sizing: inherit; background: transparent; color: rgb(37, 111, 162); transition: color 0.1s ease-out 0s; margin-top: 0px; margin-bottom: 0px; word-break: break-all;&quot;&gt;qa-theme/SnowFlat/images/vote-buttons-2.png&lt;/a&gt;&amp;nbsp;(expiration not specified)&lt;/li&gt;

&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;a href=&quot;https://www.googletagmanager.com/gtag/js?id=UA-92155952-2&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot; style=&quot;box-sizing: inherit; background: transparent; color: rgb(37, 111, 162); transition: color 0.1s ease-out 0s; margin-top: 0px; margin-bottom: 0px; word-break: break-all;&quot;&gt;https://www.googletagmanager.com/gtag/js?id=UA-92155952-2&lt;/a&gt;&amp;nbsp;(15 minutes)&lt;/li&gt;

&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;a href=&quot;https://www.googletagservices.com/activeview/js/current/osd.js?cb=%2Fr20100101&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot; style=&quot;box-sizing: inherit; background: transparent; color: rgb(37, 111, 162); transition: color 0.1s ease-out 0s; margin-top: 0px; margin-bottom: 0px; word-break: break-all;&quot;&gt;https://www.googletagservices.com/activeview/js/current/osd.js?cb=%2Fr20100101&lt;/a&gt;&amp;nbsp;(50 minutes)&lt;/li&gt;

&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;a href=&quot;https://www.googletagservices.com/activeview/js/current/osd_listener.js?cache=r20110914&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot; style=&quot;box-sizing: inherit; background: transparent; color: rgb(37, 111, 162); transition: color 0.1s ease-out 0s; margin-top: 0px; margin-bottom: 0px; word-break: break-all;&quot;&gt;https://www.googletagservices.com/activeview/js/current/osd_listener.js?cache=r20110914&lt;/a&gt;&amp;nbsp;(50 minutes)&lt;/li&gt;

&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;a href=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot; style=&quot;box-sizing: inherit; background: transparent; color: rgb(37, 111, 162); transition: color 0.1s ease-out 0s; margin-top: 0px; margin-bottom: 0px; word-break: break-all;&quot;&gt;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&lt;/a&gt;&amp;nbsp;(1 hour)&lt;/li&gt;

&lt;li style=&quot;box-sizing: inherit; margin-bottom: 0px;&quot;&gt;&lt;a href=&quot;https://www.google-analytics.com/analytics.js&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot; style=&quot;box-sizing: inherit; background: transparent; color: rgb(37, 111, 162); transition: color 0.1s ease-out 0s; margin-top: 0px; margin-bottom: 0px; word-break: break-all;&quot;&gt;https://www.google-analytics.com/analytics.js&lt;/a&gt;&amp;nbsp;(2 hours)&lt;/li&gt;&lt;/ul&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/72124/leverage-browser-caching-for-following-cacheable-resources</guid>
<pubDate>Thu, 24 Jan 2019 20:36:15 +0000</pubDate>
</item>
<item>
<title>To what extent the caching is effective?</title>
<link>https://www.question2answer.org/qa/59598/to-what-extent-the-caching-is-effective</link>
<description>

&lt;p&gt;QA 1.8 comes with caching feature which can be also easly implemented to QA 1.7.5.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;I just wonder if any of you have tested efficiency of this caching method. To what extent it helps to increase the performance of a frequently changing (active) q2a website? Can any one give metric regarding this, whoever tested it? What are the pros and cons of enabling caching?&lt;/p&gt;

&lt;p&gt;This is my current gtmetrix without caching: (on a shared host)&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=5573225438003429322&quot; style=&quot;height:335px; width:600px&quot;&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/59598/to-what-extent-the-caching-is-effective</guid>
<pubDate>Mon, 11 Sep 2017 18:11:41 +0000</pubDate>
</item>
<item>
<title>Query string performance tuning suggestion from a tool</title>
<link>https://www.question2answer.org/qa/51571/query-string-performance-tuning-suggestion-from-a-tool</link>
<description>

&lt;blockquote&gt;

&lt;p&gt;Remove query strings from static resources&lt;/p&gt;

&lt;p&gt;Most proxies, most notably Squid up through version 3.0, do not cache resources with a &quot;?&quot; in their URL even if a&amp;nbsp;Cache-control: public&amp;nbsp;header is present in the response. To enable proxy caching for these resources, remove query strings from references to static resources, and instead encode the parameters into the file names themselves.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;/?qa=image&amp;amp;qa_blobid=14251717397400842271&amp;amp;qa_size=30
&lt;br&gt;/qa-plugin/q2a-social-share-master/css/social-share.css?1.6.1
&lt;br&gt;/qa-plugin/q2a-social-share-master/fonts/social-icon.ttf?-p1x0ul
&lt;br&gt;/qa-theme/SnowFlat/fonts/fontello.woff?70015067
&lt;br&gt;/qa-theme/SnowFlat/fonts/ubuntu.css?1.7.4
&lt;br&gt;/qa-theme/SnowFlat/images/spinner-icon-14x14.gif?1410117644
&lt;br&gt;/qa-theme/SnowFlat/qa-styles.css?1.7.4&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;I ran an online performance test against my website and was give the above suggestion to improve performance. Does this make sense &amp;nbsp;and Is there anything we can do ?&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/51571/query-string-performance-tuning-suggestion-from-a-tool</guid>
<pubDate>Thu, 28 Apr 2016 11:02:30 +0000</pubDate>
</item>
<item>
<title>Let's all brainstorm to solve this caching issue once for all</title>
<link>https://www.question2answer.org/qa/50680/lets-all-brainstorm-to-solve-this-caching-issue-once-for-all</link>
<description>

&lt;p&gt;Lets all brainstorm to get this thing done.&lt;/p&gt;

&lt;p&gt;Few considerations:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1&lt;/strong&gt;- Ideally we need to cache every single page( question pages, front page, list views, user pages, ) except admin-only pages&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2&lt;/strong&gt;- Each time an event fires, cache copy of pages affected by this event have to be updated.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3&lt;/strong&gt;- Plug-ins also have to get notified of this cache page updates.&lt;/p&gt;

&lt;p&gt;Two very typical scenario:&lt;/p&gt;

&lt;p&gt;Scenario 1&lt;strong&gt;.&lt;/strong&gt; A user answers a question.&lt;/p&gt;

&lt;p&gt;- As a result his/her score has to be updated in his/her user page, the activity page, the question page, the questions list page, walls of other users if he/she has posted anything.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Scenario 2.&amp;nbsp; Each time a page gets visited, its cached version has to be updated too. why? because page views are displayed in question pages at the top.&lt;/p&gt;

&lt;p&gt;In one word, each time there is an update/write to db, the corresponding cached pages have to be updated too (except the admin ones)&lt;strong&gt; &lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Very expensive to implement right?&lt;/p&gt;

&lt;p&gt;Suggesting approach:&lt;/p&gt;

&lt;p&gt;so we need to lower our expectation and only concentrate on updating caching for more important stuff and leave some of the components to be later read and updated via ajax calls (e.g. users scores, page views, votes etc)&lt;/p&gt;

&lt;p&gt;convention:&lt;/p&gt;

&lt;p&gt;- Lets call important stuff like questions, answers, comments and the scaffoldingof the page (related CSS and HTML DOM) &lt;strong&gt;class 1 &lt;/strong&gt;component&lt;/p&gt;

&lt;p&gt;- Lets call user scores, vote values, flag values etc, class 2 components&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Example: For a question page, the question itself, the answers, the comments to be cached and leave the rest to be updated by ajax calls only after entire page is fully loaded ( from cache copy).&lt;/p&gt;

&lt;p&gt;1- Each time a question or answer or a comment is posted/updated (class 1 components changed), update the cache of corresponding pages.&lt;/p&gt;

&lt;p&gt;Updating or creating a cache for a page means: rendering entire page (class 1 and class 2) and storing them all together as cached copy&lt;/p&gt;

&lt;p&gt;2- Each time a page is requested:&lt;/p&gt;

&lt;p&gt;if (the cache copy of that page is available)&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { -load cache copy (the class 1 components&amp;nbsp; which are up to date and correct + cached copy of class 2 which might not be up to date )&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - update class 2 components like users scores, votes, flags by ajax calls&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.g. the users sees the entire page loaded quickly and notices that the user A had score 85, but after 1-2 second his/her score get updated to value 93.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;

&lt;p&gt;else {&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; - load class 1 components of the page from db&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - update class 2 components by ajax calls to db &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - update the cache copy of that page&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;

&lt;p&gt;I &quot;think&quot; this approach can also take care of complications the third party plugins add too&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Question: is this possible?&lt;/p&gt;

&lt;p&gt;----------------------------------------&lt;/p&gt;

&lt;p&gt;Please kindly avoid posting comments like, it is not that easy, it needs time etc. Instead try to contribute please&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/50680/lets-all-brainstorm-to-solve-this-caching-issue-once-for-all</guid>
<pubDate>Sun, 28 Feb 2016 00:43:50 +0000</pubDate>
</item>
<item>
<title>Security errors for users.</title>
<link>https://www.question2answer.org/qa/47355/security-errors-for-users</link>
<description>Hi, I have been getting a lot of security errors for users login/register recently. I guess it has something to do with cookies. Can some one help? I have a doubt this is due to the caching plugin. &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;PHP Question2Answer form security violation for login by anonymous (time 760s in future) on /login?to&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
I can see that the client time is in future- but I surely don't want to deny such users access.</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/47355/security-errors-for-users</guid>
<pubDate>Sat, 15 Aug 2015 10:57:28 +0000</pubDate>
</item>
<item>
<title>How do I clear cache?</title>
<link>https://www.question2answer.org/qa/46147/how-do-i-clear-cache</link>
<description>How do I clear cache? Items that I removed still keep showing up on my website q2a website? &amp;nbsp;I have made many changes via admin panel, but I am still unable to see them and would like to see the changes immediately. &amp;nbsp;I have already cleared the cache and cookies out of all my browser, and that method doesn't work. &amp;nbsp;Someone please help me. &amp;nbsp;What files do I need to alter in order to get immediate changes? &amp;nbsp;What code must be changed?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/46147/how-do-i-clear-cache</guid>
<pubDate>Sat, 27 Jun 2015 18:01:05 +0000</pubDate>
</item>
<item>
<title>Why not question2answer have caching system or caching plugin?</title>
<link>https://www.question2answer.org/qa/46071/why-not-question2answer-have-caching-system-caching-plugin</link>
<description></description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/46071/why-not-question2answer-have-caching-system-caching-plugin</guid>
<pubDate>Wed, 24 Jun 2015 07:12:04 +0000</pubDate>
</item>
<item>
<title>Blobs do NOT get cached? How to turn on blob cache?</title>
<link>https://www.question2answer.org/qa/29237/blobs-do-not-get-cached-how-to-turn-on-blob-cache</link>
<description>

&lt;p&gt;
	I remember that gidgreen once said all blobs get cached by the browser, correct headers are sent. Looking to the Firefox Developer console, I see that this is not the case instead code &quot;304&quot; (yellow bubble) they get loaded completely anew, code &quot;200&quot;.&lt;/p&gt;


&lt;p&gt;
	&lt;img alt=&quot;screenshot&quot; src=&quot;http://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=18367781775723534488&quot; style=&quot;width: 600px; height: 187px;&quot;&gt;&lt;/p&gt;


&lt;p&gt;
	So, how to turn on the blob cache?&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Note: All my blobs are loaded from the database.&lt;/p&gt;


&lt;p&gt;
	And I am using htacess to define the cache time:&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpiresByType image/gif &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&quot;access plus 1 month&quot;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;ExpiresByType image/jpg &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&quot;access plus 1 month&quot;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;ExpiresByType image/jpeg &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&quot;access plus 1 month&quot;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;ExpiresByType image/png &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&quot;access plus 1 month&quot;
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	PS: You can see the same effect here in this forum.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/29237/blobs-do-not-get-cached-how-to-turn-on-blob-cache</guid>
<pubDate>Mon, 25 Nov 2013 04:48:54 +0000</pubDate>
</item>
<item>
<title>I'm building a Cache plugin/layer - What would you like to see it do?</title>
<link>https://www.question2answer.org/qa/9670/im-building-cache-plugin-layer-what-would-you-like-to-see-it-do</link>
<description>

&lt;p&gt;
	I'm building a cache plug-in layer for q2a. The basic idea is that, for most pages, the entire page can be cached, while other pages can only cache certain sections.
&lt;br&gt;
	
&lt;br&gt;
	For pages like home that build elements from different places, I'm going to cache each major section as a cache file. When that part of the page is being built, I'll check if there's a cache file for it and use that. If there isn't I'll execute the code and store the result in a cache file to use next time.
&lt;br&gt;
	
&lt;br&gt;
	For pages like a question, the entire page can be cached until there's a change event. To do this, I'm going to deliver the cached version of the entire page in the init of the modual if it's not a POST. If there's no cache file, I'm going to let the page execute and capture the output for the cache by turning on the output buffer with ob_start. If there's an event (like an upvote or comment) I'll delete the cache file so a new cache file could be created.
&lt;br&gt;
	
&lt;br&gt;
	I'm going to store all cache information under the question ID so that I can wipe out the entire cache for that question, insuring the most up-to-date result each time.
&lt;br&gt;
	
&lt;br&gt;
	Is this something you'd like to us? Please add your feedback and suggestions on this idea.&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;Edit: The existing version is very buggy. Use it for informational purposes only, not in a production environment. I'm working on an update that'll address a lot of the issues with this beta version.&lt;/strong&gt;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/9670/im-building-cache-plugin-layer-what-would-you-like-to-see-it-do</guid>
<pubDate>Sun, 09 Oct 2011 20:30:37 +0000</pubDate>
</item>
<item>
<title>Is caching possible in Q2A?</title>
<link>https://www.question2answer.org/qa/2865/is-caching-possible-in-q2a</link>
<description>

&lt;p&gt;
	I've noticed that Q2A sends several headers to prevent caching on all pages:&lt;/p&gt;


&lt;blockquote&gt;
	

&lt;pre&gt;
	Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache&lt;/pre&gt;
&lt;/blockquote&gt;


&lt;p&gt;
	However, for old questions the chance of them changing is quite low. So wouldn't it be beneficial to remove those headers if a question is more than a week old, or set them to cache for at least a few hours?&lt;/p&gt;


&lt;p&gt;
	Also, would it be at all feasible to cache pages server-side, or parts of pages? If a user is logged in there will be certain parts that can't be cached, but a good chunk of the HTML should be cacheable, right?&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/2865/is-caching-possible-in-q2a</guid>
<pubDate>Tue, 12 Oct 2010 08:44:57 +0000</pubDate>
</item>
</channel>
</rss>