Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: aks_cache: Partial caching web pages. SpeedUp your site!
New version aks_cache 0.2.6
Changes:
- Add attribute
disable
- Add tag
<txp:aks_cache_disable />
It’s used inside<txp:aks_cache>
…</txp:aks_cache>
block. Any cascade withtxp:output form
or other plugins for include form is allowed.
Last edited by makss (2016-01-16 18:53:35)
aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)
Offline
Re: aks_cache: Partial caching web pages. SpeedUp your site!
Small update aks_cache 0.2.7
Changes:
Added option: “Disable cache for users”
Last edited by makss (2016-01-16 18:53:57)
aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)
Offline
#27 2010-07-20 14:32:38
- ploinkr
- Member
- From: Montreal
- Registered: 2007-12-06
- Posts: 83
Re: aks_cache: Partial caching web pages. SpeedUp your site!
Thanks makss! Just a quick question: will it work with TXP 4.0.8?
Offline
#28 2010-10-30 00:55:37
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: aks_cache: Partial caching web pages. SpeedUp your site!
hello, thank you very much for this plugin, it’s very useful.
I have been experiencing some trouble, though.
I am caching a block containing a large gallery of images loaded from flickr.
I am not sure whether it is a timeout problem but what I get from the server is the following:
Tag error: <txp:aks_cache id='article <txp:article_id /> cache'> -> Textpattern Warning: MySQL server has gone away
insert into claraaks_cache set hid='87210da0926103e97e8c6d28e706c5cb', ttl=1288413881, data='\n
… here follows the data to cache …
', infos='article 1 cache|240|8722' on line 85
I guess there’s a limit somewhere..?
thanks
Last edited by feragnoli (2010-10-31 00:34:41)
what was that again…?
Offline
Re: aks_cache: Partial caching web pages. SpeedUp your site!
What size has chunk of code what you are trying. There is some mysql restriction that it can’t insert via php big parts – i had problem with inserting 2..3Mb code via aks_cache.
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
#30 2010-10-31 00:38:55
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: aks_cache: Partial caching web pages. SpeedUp your site!
not sure about the size of it.
but IF it is caching the images too that must be a few Mb for sure. is there a way out of this? filesystem caching?
(where is the plugin saving the cache by the way?)
what was that again…?
Offline
Re: aks_cache: Partial caching web pages. SpeedUp your site!
feragnoli wrote:
not sure about the size of it.
but IF it is caching the images too that must be a few Mb for sure. is there a way out of this? filesystem caching?
(where is the plugin saving the cache by the way?)
This plugin parses txp code and stores it in DB. So, if you call some code, that was wrapped by aks_cache, and this code was cached previously by it, plugin will only make one query to DB and pull from it this chunk of code.
It doesn’t stores img’s in common sense – in most user cases it stores html code, once evaluted by Textpattern. If you need caching imgs you should tweak you server options. For example, search for “expire” option in .htaccess file.
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
#32 2010-10-31 23:10:12
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: aks_cache: Partial caching web pages. SpeedUp your site!
yes, I just saw that. the db table is set to mediumtext… would changing it to longtext affect the functioning..?
what was that again…?
Offline
Re: aks_cache: Partial caching web pages. SpeedUp your site!
Maybe – you can try and post here results :)
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
#34 2010-11-04 13:39:48
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: aks_cache: Partial caching web pages. SpeedUp your site!
hello, I did not get better result setting the column to longtext.
I think it is a problem with the MySQL server timing out.
maybe it would be possible to implement in the function a variable to set a different wait_timeout..?
see this: http://www.webyog.com/blog/2009/09/02/“mysql-server-has-gone-away”-part-2-session-timeout/
my block includes a certain amount of images from flickr, I guess that’s taking quite some time and extending the session
what was that again…?
Offline
Re: aks_cache: Partial caching web pages. SpeedUp your site!
Nice plugin. I would just suggest that you check
if( !(strpos($prefs['aks_cache_opt'],'dis_adm')===false) || !(strpos($prefs['aks_cache_opt'],'dis_users')===false) )
before calling $prr=is_logged_in();
to spare one query.
Offline
Re: aks_cache: Partial caching web pages. SpeedUp your site!
I do have quite a lot of html blocks that require caching and I cannot simply put all html blocks in one cache-block. I have noticed that the overall time for SQL queries is quite high so I was hoping there could be an option to store cached blocks on the file system directly rather than in the database.
Is it possible to set aks_cache so it uses a directory to write cache files to instead of using the MySQL database?
Yoko for Textpattern – A free blog theme • Minimum Theme – If all you want to do is write.
Note: I am currently not actively using Textpattern, so I am not in the forums very often
Offline