[geeklog-devel] Geeklog Caching

Tom websitemaster at cogeco.net
Sat Jul 19 10:34:39 EDT 2014


For all,

Here is a quick rundown of the basics of caching in Geeklog. There is 3 main things we cache. 

The template cache just caches the template files of a theme. It does all the preprocessing and saves it to a file. 

The information of a story, article, block can also be cached. These are saved in a separate file and are recreated based on the cache time saved with each item or if the item is updated in the editor. The cache time you use is based on your site and what information you have in say your story. If you have an autotag in the story that pulls information from somewhere you may want to have a short cache time  or no cache at all. Some items of a story are not cached at all. This would include story views. There can also be several versions of an item cached. Anonymous users have their own cached version and each user has their own cached version (basically). These cached files are also based on the user language selected and the theme selected.

We also cache a few process intensive items like the topic tree and the story counts for these topics. These get recreated every time a story gets added, deleted or updated (which is much better than for every single page load). This is also cached based on user security since some users may have access to stories that others do not.

Plugins also can hook into the api and use caching as well if the developer wants (see the staticpage plugin).

Tom

-----Original Message-----
From: geeklog-devel [mailto:geeklog-devel-bounces at lists.geeklog.net] On Behalf Of cordiste
Sent: July-19-14 9:39 AM
To: Geeklog Development
Subject: Re: [geeklog-devel] geeklog.net articles not visible for anon users?

Hi,

Geeklog.fr was updated from Geeklog 1.8.2 to Geelklog 2.1 few days ago (apache server). I noticed a speed increase for page loading but no missing stories.

But caching might create an issue: when I modify a static page or an article the page displayed after the save is the old version. I need to reload the page to update it in the screen. This was not the case before (Geeklog 1.8.2). Same thing when I edit the page or the story once more, the content in the editor and the token are the old ones. I also need to reload the page here.

Ben

2014-07-19 2:21 GMT+02:00 Dan Stoner <danstoner at gmail.com>:
> I would like to work on this but I just don't know if I will have 
> time. My site runs on apache and I am planning to upgrade to 2.1 
> sometime over the next few weeks. I'm hoping to at least.
>
> - Dan Stoner
>
> On Fri, Jul 18, 2014 at 5:02 PM, Tom <websitemaster at cogeco.net> wrote:
>> No... it is the template cache.  It was set to true (I thought I had disabled it... I must have been doing some testing a month or so ago and left it on). Clearing the cache fixed the issue but I disabled it for now anyways.
>>
>> It's really weird... I don't have the issue on my IIS server but once in a while it happens on Geeklog.net which uses apache. Can someone else enable template caching on one of their more busy Geeklog sites and let me know if the missing of stories happens (or doesn't) to them in 2 weeks? Also let us know what web server software you are using.
>>
>> Thanks
>>
>> Tom
>>
>> -----Original Message-----
>> From: geeklog-devel [mailto:geeklog-devel-bounces at lists.geeklog.net] 
>> On Behalf Of cordiste
>> Sent: July-18-14 1:15 PM
>> To: Geeklog Development
>> Subject: Re: [geeklog-devel] geeklog.net articles not visible for anon users?
>>
>> Hi,
>> https://www.geeklog.net/index.php?page=1 do not display articles but
>> https://www.geeklog.net/index.php?page=2 do
>>
>> Maybe an issue with the static page or forum block on front page?
>>
>> Ben
>>
>> 2014-07-18 18:23 GMT+02:00 Dirk Haun <dirk at haun-online.de>:
>>> Just noticed that when I call up www.geeklog.net and I’m not logged in, only the forum block shows up - but none of the articles. They do show up after I log in. Odd.
>>>
>>> Geeklog 2.1.0 glitch?
>>>
>>> Or maybe something that the announced „emergency update“ (yesterday) to the server could have caused? I don’t know what pair.com changed, though.
>>>
>>> bye, Dirk
>>>
>>>
>>> --
>>> https://www.themobilepresenter.com/
>>>
>>> _______________________________________________
>>> geeklog-devel mailing list
>>> geeklog-devel at lists.geeklog.net
>>> http://eight.pairlist.net/mailman/listinfo/geeklog-devel
>>>
>> _______________________________________________
>> geeklog-devel mailing list
>> geeklog-devel at lists.geeklog.net
>> http://eight.pairlist.net/mailman/listinfo/geeklog-devel
>>
>> _______________________________________________
>> geeklog-devel mailing list
>> geeklog-devel at lists.geeklog.net
>> http://eight.pairlist.net/mailman/listinfo/geeklog-devel
> _______________________________________________
> geeklog-devel mailing list
> geeklog-devel at lists.geeklog.net
> http://eight.pairlist.net/mailman/listinfo/geeklog-devel
_______________________________________________
geeklog-devel mailing list
geeklog-devel at lists.geeklog.net
http://eight.pairlist.net/mailman/listinfo/geeklog-devel




More information about the geeklog-devel mailing list